home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: Plain text[CR]
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 52 65 63 65 69 76 65 64 | 2d 44 61 74 65 3a 20 54 |Received|-Date: T|
|00000010| 75 65 2c 20 35 20 4a 75 | 6c 20 31 39 39 34 20 31 |ue, 5 Ju|l 1994 1|
|00000020| 34 3a 35 30 3a 34 30 20 | 2b 30 32 30 30 0d 46 72 |4:50:40 |+0200.Fr|
|00000030| 6f 6d 3a 20 70 6f 74 74 | 69 65 72 40 63 6c 69 70 |om: pott|ier@clip|
|00000040| 70 65 72 2e 65 6e 73 2e | 66 72 20 28 46 72 61 6e |per.ens.|fr (Fran|
|00000050| 63 6f 69 73 20 50 6f 74 | 74 69 65 72 29 0d 53 75 |cois Pot|tier).Su|
|00000060| 62 6a 65 63 74 3a 20 63 | 73 6d 70 2d 64 69 67 65 |bject: c|smp-dige|
|00000070| 73 74 2d 76 33 2d 30 34 | 32 0d 54 6f 3a 20 63 73 |st-v3-04|2.To: cs|
|00000080| 6d 70 2d 64 69 67 65 73 | 74 40 65 6e 73 2e 66 72 |mp-diges|t@ens.fr|
|00000090| 0d 44 61 74 65 3a 20 54 | 75 65 2c 20 35 20 4a 75 |.Date: T|ue, 5 Ju|
|000000a0| 6c 20 31 39 39 34 20 31 | 34 3a 35 30 3a 33 36 20 |l 1994 1|4:50:36 |
|000000b0| 2b 30 32 30 30 20 28 4d | 45 54 20 44 53 54 29 0d |+0200 (M|ET DST).|
|000000c0| 58 2d 4d 61 69 6c 65 72 | 3a 20 45 4c 4d 20 5b 76 |X-Mailer|: ELM [v|
|000000d0| 65 72 73 69 6f 6e 20 32 | 2e 34 20 50 4c 32 33 5d |ersion 2|.4 PL23]|
|000000e0| 0d 4d 69 6d 65 2d 56 65 | 72 73 69 6f 6e 3a 20 31 |.Mime-Ve|rsion: 1|
|000000f0| 2e 30 0d 43 6f 6e 74 65 | 6e 74 2d 54 79 70 65 3a |.0.Conte|nt-Type:|
|00000100| 20 74 65 78 74 2f 70 6c | 61 69 6e 3b 20 63 68 61 | text/pl|ain; cha|
|00000110| 72 73 65 74 3d 49 53 4f | 2d 38 38 35 39 2d 31 0d |rset=ISO|-8859-1.|
|00000120| 43 6f 6e 74 65 6e 74 2d | 54 72 61 6e 73 66 65 72 |Content-|Transfer|
|00000130| 2d 45 6e 63 6f 64 69 6e | 67 3a 20 38 62 69 74 0d |-Encodin|g: 8bit.|
|00000140| 45 72 72 6f 72 73 2d 54 | 6f 3a 20 6c 69 73 74 6d |Errors-T|o: listm|
|00000150| 61 6e 40 65 6e 73 2e 66 | 72 0d 52 65 70 6c 79 2d |an@ens.f|r.Reply-|
|00000160| 54 6f 3a 20 70 6f 74 74 | 69 65 72 40 63 6c 69 70 |To: pott|ier@clip|
|00000170| 70 65 72 2e 65 6e 73 2e | 66 72 0d 58 2d 53 65 71 |per.ens.|fr.X-Seq|
|00000180| 75 65 6e 63 65 3a 20 34 | 35 0d 0d 43 2e 53 2e 4d |uence: 4|5..C.S.M|
|00000190| 2e 50 2e 20 44 69 67 65 | 73 74 20 20 20 20 20 20 |.P. Dige|st |
|000001a0| 20 20 20 20 20 20 20 54 | 75 65 2c 20 30 35 20 4a | T|ue, 05 J|
|000001b0| 75 6c 20 39 34 20 20 20 | 20 20 20 20 56 6f 6c 75 |ul 94 | Volu|
|000001c0| 6d 65 20 33 20 3a 20 49 | 73 73 75 65 20 34 32 0d |me 3 : I|ssue 42.|
|000001d0| 20 0d 54 6f 64 61 79 27 | 73 20 54 6f 70 69 63 73 | .Today'|s Topics|
|000001e0| 3a 0d 20 0d 20 20 20 20 | 20 20 20 20 2a 2a 4e 6f |:. . | **No|
|000001f0| 76 69 63 65 20 51 75 65 | 73 74 69 6f 6e 20 6f 6e |vice Que|stion on|
|00000200| 20 73 61 76 69 6e 67 20 | 66 69 6c 65 73 2a 2a 0d | saving |files**.|
|00000210| 20 20 20 20 20 20 20 20 | 43 4f 44 45 20 52 65 73 | |CODE Res|
|00000220| 6f 75 72 63 65 73 0d 20 | 20 20 20 20 20 20 20 43 |ources. | C|
|00000230| 6f 64 65 20 52 65 73 6f | 75 72 63 65 73 20 77 69 |ode Reso|urces wi|
|00000240| 74 68 20 43 6f 64 65 57 | 61 72 72 69 6f 72 0d 20 |th CodeW|arrior. |
|00000250| 20 20 20 20 20 20 20 4d | 61 63 54 43 50 20 44 4e | M|acTCP DN|
|00000260| 52 20 66 6f 72 20 50 6f | 77 65 72 50 43 3f 0d 20 |R for Po|werPC?. |
|00000270| 20 20 20 20 20 20 20 4d | 61 6a 6f 72 20 62 75 67 | M|ajor bug|
|00000280| 20 77 69 74 68 20 53 79 | 6d 61 6e 74 65 63 20 43 | with Sy|mantec C|
|00000290| 44 4b 20 2a 50 6c 65 61 | 73 65 20 52 65 61 64 2a |DK *Plea|se Read*|
|000002a0| 0d 20 20 20 20 20 20 20 | 20 50 65 72 73 70 65 63 |. | Perspec|
|000002b0| 74 69 76 65 20 69 6e 20 | 47 58 20 28 77 61 73 20 |tive in |GX (was |
|000002c0| 52 65 3a 20 63 61 6e 20 | 74 6f 6f 6c 62 6f 78 20 |Re: can |toolbox |
|000002d0| 64 72 61 77 20 74 65 78 | 74 20 61 74 20 61 6e 20 |draw tex|t at an |
|000002e0| 61 6e 67 6c 65 3f 29 0d | 20 20 20 20 20 20 20 20 |angle?).| |
|000002f0| 53 74 69 6c 6c 20 74 72 | 6f 75 62 6c 65 20 66 69 |Still tr|ouble fi|
|00000300| 6e 64 69 6e 67 20 66 6c | 6f 61 74 69 6e 67 20 77 |nding fl|oating w|
|00000310| 69 6e 64 6f 77 73 20 63 | 6f 64 65 2e 0d 20 20 20 |indows c|ode.. |
|00000320| 20 20 20 20 20 5f 76 53 | 79 6e 63 57 61 69 74 20 | _vS|yncWait |
|00000330| 69 6e 66 69 6e 69 74 65 | 20 6c 6f 6f 70 3f 0d 20 |infinite| loop?. |
|00000340| 20 20 20 20 20 20 20 63 | 61 6e 20 74 6f 6f 6c 62 | c|an toolb|
|00000350| 6f 78 20 64 72 61 77 20 | 74 65 78 74 20 61 74 20 |ox draw |text at |
|00000360| 61 6e 20 61 6e 67 6c 65 | 3f 0d 0d 0d 0d 54 68 65 |an angle|?....The|
|00000370| 20 43 6f 6d 70 2e 53 79 | 73 2e 4d 61 63 2e 50 72 | Comp.Sy|s.Mac.Pr|
|00000380| 6f 67 72 61 6d 6d 65 72 | 20 44 69 67 65 73 74 20 |ogrammer| Digest |
|00000390| 69 73 20 6d 6f 64 65 72 | 61 74 65 64 20 62 79 20 |is moder|ated by |
|000003a0| 46 72 61 6e 63 6f 69 73 | 20 50 6f 74 74 69 65 72 |Francois| Pottier|
|000003b0| 0d 28 70 6f 74 74 69 65 | 72 40 63 6c 69 70 70 65 |.(pottie|r@clippe|
|000003c0| 72 2e 65 6e 73 2e 66 72 | 29 2e 0d 20 0d 54 68 65 |r.ens.fr|).. .The|
|000003d0| 20 64 69 67 65 73 74 20 | 69 73 20 61 20 63 6f 6c | digest |is a col|
|000003e0| 6c 65 63 74 69 6f 6e 20 | 6f 66 20 61 72 74 69 63 |lection |of artic|
|000003f0| 6c 65 20 74 68 72 65 61 | 64 73 20 66 72 6f 6d 20 |le threa|ds from |
|00000400| 74 68 65 20 69 6e 74 65 | 72 6e 65 74 20 6e 65 77 |the inte|rnet new|
|00000410| 73 67 72 6f 75 70 0d 63 | 6f 6d 70 2e 73 79 73 2e |sgroup.c|omp.sys.|
|00000420| 6d 61 63 2e 70 72 6f 67 | 72 61 6d 6d 65 72 2e 20 |mac.prog|rammer. |
|00000430| 20 49 74 20 69 73 20 64 | 65 73 69 67 6e 65 64 20 | It is d|esigned |
|00000440| 66 6f 72 20 70 65 6f 70 | 6c 65 20 77 68 6f 20 72 |for peop|le who r|
|00000450| 65 61 64 20 63 2e 73 2e | 6d 2e 70 2e 20 73 65 6d |ead c.s.|m.p. sem|
|00000460| 69 2d 0d 72 65 67 75 6c | 61 72 6c 79 20 61 6e 64 |i-.regul|arly and|
|00000470| 20 77 61 6e 74 20 61 6e | 20 61 72 63 68 69 76 65 | want an| archive|
|00000480| 20 6f 66 20 74 68 65 20 | 64 69 73 63 75 73 73 69 | of the |discussi|
|00000490| 6f 6e 73 2e 20 20 49 66 | 20 79 6f 75 20 64 6f 6e |ons. If| you don|
|000004a0| 27 74 20 6b 6e 6f 77 20 | 77 68 61 74 20 61 0d 6e |'t know |what a.n|
|000004b0| 65 77 73 67 72 6f 75 70 | 20 69 73 2c 20 79 6f 75 |ewsgroup| is, you|
|000004c0| 20 70 72 6f 62 61 62 6c | 79 20 64 6f 6e 27 74 20 | probabl|y don't |
|000004d0| 68 61 76 65 20 61 63 63 | 65 73 73 20 74 6f 20 69 |have acc|ess to i|
|000004e0| 74 2e 20 20 41 73 6b 20 | 79 6f 75 72 20 73 79 73 |t. Ask |your sys|
|000004f0| 74 65 6d 73 0d 61 64 6d | 69 6e 69 73 74 72 61 74 |tems.adm|inistrat|
|00000500| 6f 72 28 73 29 20 66 6f | 72 20 64 65 74 61 69 6c |or(s) fo|r detail|
|00000510| 73 2e 20 20 49 66 20 79 | 6f 75 20 64 6f 6e 27 74 |s. If y|ou don't|
|00000520| 20 68 61 76 65 20 61 63 | 63 65 73 73 20 74 6f 20 | have ac|cess to |
|00000530| 6e 65 77 73 2c 20 79 6f | 75 20 6d 61 79 0d 73 74 |news, yo|u may.st|
|00000540| 69 6c 6c 20 62 65 20 61 | 62 6c 65 20 74 6f 20 70 |ill be a|ble to p|
|00000550| 6f 73 74 20 6d 65 73 73 | 61 67 65 73 20 74 6f 20 |ost mess|ages to |
|00000560| 74 68 65 20 67 72 6f 75 | 70 20 62 79 20 75 73 69 |the grou|p by usi|
|00000570| 6e 67 20 61 20 6d 61 69 | 6c 20 73 65 72 76 65 72 |ng a mai|l server|
|00000580| 20 6c 69 6b 65 0d 61 6e | 6f 6e 2e 70 65 6e 65 74 | like.an|on.penet|
|00000590| 2e 66 69 20 28 6d 61 69 | 6c 20 68 65 6c 70 40 61 |.fi (mai|l help@a|
|000005a0| 6e 6f 6e 2e 70 65 6e 65 | 74 2e 66 69 20 66 6f 72 |non.pene|t.fi for|
|000005b0| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|000005c0| 6e 29 2e 0d 20 0d 45 61 | 63 68 20 69 73 73 75 65 |n).. .Ea|ch issue|
|000005d0| 20 6f 66 20 74 68 65 20 | 64 69 67 65 73 74 20 63 | of the |digest c|
|000005e0| 6f 6e 74 61 69 6e 73 20 | 6f 6e 65 20 6f 72 20 6d |ontains |one or m|
|000005f0| 6f 72 65 20 73 65 74 73 | 20 6f 66 20 61 72 74 69 |ore sets| of arti|
|00000600| 63 6c 65 73 20 28 63 61 | 6c 6c 65 64 0d 74 68 72 |cles (ca|lled.thr|
|00000610| 65 61 64 73 29 2c 20 77 | 69 74 68 20 65 61 63 68 |eads), w|ith each|
|00000620| 20 73 65 74 20 63 6f 72 | 72 65 73 70 6f 6e 64 69 | set cor|respondi|
|00000630| 6e 67 20 74 6f 20 61 20 | 27 64 69 73 63 75 73 73 |ng to a |'discuss|
|00000640| 69 6f 6e 27 20 6f 66 20 | 61 20 70 61 72 74 69 63 |ion' of |a partic|
|00000650| 75 6c 61 72 0d 73 75 62 | 6a 65 63 74 2e 20 20 54 |ular.sub|ject. T|
|00000660| 68 65 20 61 72 74 69 63 | 6c 65 73 20 61 72 65 20 |he artic|les are |
|00000670| 6e 6f 74 20 65 64 69 74 | 65 64 3b 20 61 6c 6c 20 |not edit|ed; all |
|00000680| 61 72 74 69 63 6c 65 73 | 20 69 6e 63 6c 75 64 65 |articles| include|
|00000690| 64 20 69 6e 20 74 68 69 | 73 20 64 69 67 65 73 74 |d in thi|s digest|
|000006a0| 0d 61 72 65 20 69 6e 20 | 74 68 65 69 72 20 6f 72 |.are in |their or|
|000006b0| 69 67 69 6e 61 6c 20 70 | 6f 73 74 65 64 20 66 6f |iginal p|osted fo|
|000006c0| 72 6d 20 28 61 73 20 72 | 65 63 65 69 76 65 64 20 |rm (as r|eceived |
|000006d0| 62 79 20 6f 75 72 20 6e | 65 77 73 20 73 65 72 76 |by our n|ews serv|
|000006e0| 65 72 20 61 74 0d 6e 65 | 66 2e 65 6e 73 2e 66 72 |er at.ne|f.ens.fr|
|000006f0| 29 2e 20 20 41 72 74 69 | 63 6c 65 20 74 68 72 65 |). Arti|cle thre|
|00000700| 61 64 73 20 61 72 65 20 | 6e 6f 74 20 61 64 64 65 |ads are |not adde|
|00000710| 64 20 74 6f 20 74 68 65 | 20 64 69 67 65 73 74 20 |d to the| digest |
|00000720| 75 6e 74 69 6c 20 74 68 | 65 20 6c 61 73 74 0d 61 |until th|e last.a|
|00000730| 72 74 69 63 6c 65 20 61 | 64 64 65 64 20 74 6f 20 |rticle a|dded to |
|00000740| 74 68 65 20 74 68 72 65 | 61 64 20 69 73 20 61 74 |the thre|ad is at|
|00000750| 20 6c 65 61 73 74 20 74 | 77 6f 20 77 65 65 6b 73 | least t|wo weeks|
|00000760| 20 6f 6c 64 20 28 74 68 | 69 73 20 69 73 20 74 6f | old (th|is is to|
|00000770| 20 65 6e 73 75 72 65 20 | 74 68 61 74 0d 74 68 65 | ensure |that.the|
|00000780| 20 74 68 72 65 61 64 20 | 69 73 20 64 65 61 64 20 | thread |is dead |
|00000790| 62 65 66 6f 72 65 20 61 | 64 64 69 6e 67 20 69 74 |before a|dding it|
|000007a0| 20 74 6f 20 74 68 65 20 | 64 69 67 65 73 74 29 2e | to the |digest).|
|000007b0| 20 20 41 72 74 69 63 6c | 65 20 74 68 72 65 61 64 | Articl|e thread|
|000007c0| 73 20 74 68 61 74 0d 63 | 6f 6e 73 69 73 74 20 6f |s that.c|onsist o|
|000007d0| 66 20 6f 6e 6c 79 20 6f | 6e 65 20 6d 65 73 73 61 |f only o|ne messa|
|000007e0| 67 65 20 61 72 65 20 67 | 65 6e 65 72 61 6c 6c 79 |ge are g|enerally|
|000007f0| 20 6e 6f 74 20 69 6e 63 | 6c 75 64 65 64 20 69 6e | not inc|luded in|
|00000800| 20 74 68 65 20 64 69 67 | 65 73 74 2e 0d 0d 54 68 | the dig|est...Th|
|00000810| 65 20 64 69 67 65 73 74 | 20 69 73 20 6f 66 66 69 |e digest| is offi|
|00000820| 63 69 61 6c 6c 79 20 64 | 69 73 74 72 69 62 75 74 |cially d|istribut|
|00000830| 65 64 20 62 79 20 74 77 | 6f 20 6d 65 61 6e 73 2c |ed by tw|o means,|
|00000840| 20 62 79 20 65 6d 61 69 | 6c 20 61 6e 64 20 66 74 | by emai|l and ft|
|00000850| 70 2e 0d 0d 49 66 20 79 | 6f 75 20 77 61 6e 74 20 |p...If y|ou want |
|00000860| 74 6f 20 72 65 63 65 69 | 76 65 20 74 68 65 20 64 |to recei|ve the d|
|00000870| 69 67 65 73 74 20 62 79 | 20 6d 61 69 6c 2c 20 73 |igest by| mail, s|
|00000880| 65 6e 64 20 65 6d 61 69 | 6c 20 74 6f 20 6c 69 73 |end emai|l to lis|
|00000890| 74 73 65 72 76 40 65 6e | 73 2e 66 72 0d 77 69 74 |tserv@en|s.fr.wit|
|000008a0| 68 20 6e 6f 20 73 75 62 | 6a 65 63 74 20 61 6e 64 |h no sub|ject and|
|000008b0| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 66 6f 6c 6c | one of |the foll|
|000008c0| 6f 77 69 6e 67 20 63 6f | 6d 6d 61 6e 64 73 20 61 |owing co|mmands a|
|000008d0| 73 20 62 6f 64 79 3a 0d | 20 20 20 20 68 65 6c 70 |s body:.| help|
|000008e0| 09 09 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000008f0| 20 20 53 65 6e 64 73 20 | 79 6f 75 20 61 20 73 75 | Sends |you a su|
|00000900| 6d 6d 61 72 79 20 6f 66 | 20 63 6f 6d 6d 61 6e 64 |mmary of| command|
|00000910| 73 0d 20 20 20 20 73 75 | 62 73 63 72 69 62 65 20 |s. su|bscribe |
|00000920| 63 73 6d 70 2d 64 69 67 | 65 73 74 20 59 6f 75 72 |csmp-dig|est Your|
|00000930| 20 4e 61 6d 65 09 41 64 | 64 73 20 79 6f 75 20 74 | Name.Ad|ds you t|
|00000940| 6f 20 74 68 65 20 6d 61 | 69 6c 69 6e 67 20 6c 69 |o the ma|iling li|
|00000950| 73 74 0d 20 20 20 20 73 | 69 67 6e 6f 66 66 20 63 |st. s|ignoff c|
|00000960| 73 6d 70 2d 64 69 67 65 | 73 74 09 09 09 52 65 6d |smp-dige|st...Rem|
|00000970| 6f 76 65 73 20 79 6f 75 | 20 66 72 6f 6d 20 74 68 |oves you| from th|
|00000980| 65 20 6c 69 73 74 0d 4f | 6e 63 65 20 79 6f 75 20 |e list.O|nce you |
|00000990| 68 61 76 65 20 73 75 62 | 73 63 72 69 62 65 64 2c |have sub|scribed,|
|000009a0| 20 79 6f 75 20 77 69 6c | 6c 20 61 75 74 6f 6d 61 | you wil|l automa|
|000009b0| 74 69 63 61 6c 6c 79 20 | 72 65 63 65 69 76 65 20 |tically |receive |
|000009c0| 65 61 63 68 20 6e 65 77 | 0d 69 73 73 75 65 20 61 |each new|.issue a|
|000009d0| 73 20 69 74 20 69 73 20 | 63 72 65 61 74 65 64 2e |s it is |created.|
|000009e0| 0d 0d 54 68 65 20 6f 66 | 66 69 63 69 61 6c 20 66 |..The of|ficial f|
|000009f0| 74 70 20 69 6e 66 6f 20 | 69 73 20 2f 2f 66 74 70 |tp info |is //ftp|
|00000a00| 2e 64 61 72 74 6d 6f 75 | 74 68 2e 65 64 75 2f 70 |.dartmou|th.edu/p|
|00000a10| 75 62 2f 63 73 6d 70 2d | 64 69 67 65 73 74 2e 0d |ub/csmp-|digest..|
|00000a20| 51 75 65 73 74 69 6f 6e | 73 20 72 65 6c 61 74 65 |Question|s relate|
|00000a30| 64 20 74 6f 20 74 68 65 | 20 66 74 70 20 73 69 74 |d to the| ftp sit|
|00000a40| 65 20 73 68 6f 75 6c 64 | 20 62 65 20 64 69 72 65 |e should| be dire|
|00000a50| 63 74 65 64 20 74 6f 0d | 73 63 6f 74 74 2e 73 69 |cted to.|scott.si|
|00000a60| 6c 76 65 72 40 64 61 72 | 74 6d 6f 75 74 68 2e 65 |lver@dar|tmouth.e|
|00000a70| 64 75 2e 20 43 75 72 72 | 65 6e 74 6c 79 20 6e 6f |du. Curr|ently no|
|00000a80| 20 70 72 65 76 69 6f 75 | 73 20 76 6f 6c 75 6d 65 | previou|s volume|
|00000a90| 73 20 6f 66 20 74 68 65 | 20 43 53 4d 50 0d 64 69 |s of the| CSMP.di|
|00000aa0| 67 65 73 74 20 61 72 65 | 20 61 76 61 69 6c 61 62 |gest are| availab|
|00000ab0| 6c 65 20 74 68 65 72 65 | 2e 0d 0d 41 6c 73 6f 2c |le there|...Also,|
|00000ac0| 20 74 68 65 20 64 69 67 | 65 73 74 73 20 61 72 65 | the dig|ests are|
|00000ad0| 20 61 76 61 69 6c 61 62 | 6c 65 20 74 6f 20 57 41 | availab|le to WA|
|00000ae0| 49 53 20 75 73 65 72 73 | 2e 20 20 54 6f 20 73 65 |IS users|. To se|
|00000af0| 61 72 63 68 20 62 61 63 | 6b 20 69 73 73 75 65 73 |arch bac|k issues|
|00000b00| 0d 77 69 74 68 20 57 41 | 49 53 2c 20 75 73 65 20 |.with WA|IS, use |
|00000b10| 63 6f 6d 70 2e 73 79 73 | 2e 6d 61 63 2e 70 72 6f |comp.sys|.mac.pro|
|00000b20| 67 72 61 6d 6d 65 72 2e | 73 72 63 2e 20 57 69 74 |grammer.|src. Wit|
|00000b30| 68 20 4d 6f 73 61 69 63 | 2c 20 75 73 65 0d 68 74 |h Mosaic|, use.ht|
|00000b40| 74 70 3a 2f 2f 77 77 77 | 2e 77 61 69 73 2e 63 6f |tp://www|.wais.co|
|00000b50| 6d 2f 77 61 69 73 2d 64 | 62 73 2f 63 6f 6d 70 2e |m/wais-d|bs/comp.|
|00000b60| 73 79 73 2e 6d 61 63 2e | 70 72 6f 67 72 61 6d 6d |sys.mac.|programm|
|00000b70| 65 72 2e 68 74 6d 6c 2e | 0d 0d 0d 2d 2d 2d 2d 2d |er.html.|...-----|
|00000b80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ba0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000bb0| 2d 2d 0d 0d 3e 46 72 6f | 6d 20 66 74 72 6f 67 65 |--..>Fro|m ftroge|
|00000bc0| 72 73 40 65 6f 73 2e 6e | 63 73 75 2e 65 64 75 20 |rs@eos.n|csu.edu |
|00000bd0| 28 46 52 41 4e 4b 4c 49 | 4e 20 54 41 52 45 4b 20 |(FRANKLI|N TAREK |
|00000be0| 52 4f 47 45 52 53 29 0d | 53 75 62 6a 65 63 74 3a |ROGERS).|Subject:|
|00000bf0| 20 2a 2a 4e 6f 76 69 63 | 65 20 51 75 65 73 74 69 | **Novic|e Questi|
|00000c00| 6f 6e 20 6f 6e 20 73 61 | 76 69 6e 67 20 66 69 6c |on on sa|ving fil|
|00000c10| 65 73 2a 2a 0d 44 61 74 | 65 3a 20 32 31 20 4a 75 |es**.Dat|e: 21 Ju|
|00000c20| 6e 20 31 39 39 34 20 31 | 33 3a 32 31 3a 33 32 20 |n 1994 1|3:21:32 |
|00000c30| 47 4d 54 0d 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |GMT.Orga|nization|
|00000c40| 3a 20 4e 6f 72 74 68 20 | 43 61 72 6f 6c 69 6e 61 |: North |Carolina|
|00000c50| 20 53 74 61 74 65 20 55 | 6e 69 76 65 72 73 69 74 | State U|niversit|
|00000c60| 79 2c 20 50 72 6f 6a 65 | 63 74 20 45 6f 73 0d 0d |y, Proje|ct Eos..|
|00000c70| 0d 0d 0d 49 27 6d 20 74 | 72 79 69 6e 67 20 74 6f |...I'm t|rying to|
|00000c80| 20 73 61 76 65 20 64 61 | 74 61 20 69 6e 74 6f 20 | save da|ta into |
|00000c90| 61 20 66 69 6c 65 2c 20 | 61 6e 64 20 61 6d 20 68 |a file, |and am h|
|00000ca0| 61 76 69 6e 67 20 74 72 | 6f 75 62 6c 65 20 75 6e |aving tr|ouble un|
|00000cb0| 64 65 72 73 74 61 6e 64 | 69 6e 67 0d 74 68 65 20 |derstand|ing.the |
|00000cc0| 75 6e 64 65 72 6c 79 69 | 6e 67 20 63 6f 6e 63 65 |underlyi|ng conce|
|00000cd0| 70 74 73 2e 20 20 49 6e | 73 69 64 65 20 4d 61 63 |pts. In|side Mac|
|00000ce0| 69 6e 74 6f 73 68 20 22 | 46 69 6c 65 73 22 20 20 |intosh "|Files" |
|00000cf0| 67 69 76 65 73 20 61 20 | 76 65 72 74 79 20 64 65 |gives a |verty de|
|00000d00| 74 61 69 6c 65 64 0d 64 | 69 73 63 75 73 73 69 6f |tailed.d|iscussio|
|00000d10| 6e 20 6f 6e 20 74 68 65 | 20 73 75 62 6a 65 63 74 |n on the| subject|
|00000d20| 2c 20 62 75 74 20 61 6c | 6c 20 65 78 61 6d 70 6c |, but al|l exampl|
|00000d30| 65 20 64 65 61 6c 20 6f | 6e 6c 79 20 77 69 74 68 |e deal o|nly with|
|00000d40| 20 54 65 78 74 45 64 69 | 74 2e 0d 20 20 54 68 65 | TextEdi|t.. The|
|00000d50| 20 46 53 57 72 69 74 65 | 20 63 6f 6d 6d 61 6e 64 | FSWrite| command|
|00000d60| 20 74 61 6b 65 73 20 61 | 20 70 6f 69 6e 74 65 72 | takes a| pointer|
|00000d70| 20 74 6f 20 61 20 64 61 | 74 61 20 62 75 66 66 65 | to a da|ta buffe|
|00000d80| 72 3a 0d 20 20 20 20 57 | 68 61 74 20 69 73 20 61 |r:. W|hat is a|
|00000d90| 20 64 61 74 61 20 62 75 | 66 66 65 72 3f 20 20 4a | data bu|ffer? J|
|00000da0| 75 73 74 20 61 6e 79 20 | 61 6c 6c 6f 63 61 74 65 |ust any |allocate|
|00000db0| 64 20 62 6c 6f 63 6b 20 | 6f 66 20 6d 65 6d 6f 72 |d block |of memor|
|00000dc0| 79 3f 0d 0d 54 68 65 20 | 64 61 74 61 20 49 20 77 |y?..The |data I w|
|00000dd0| 69 73 68 20 74 6f 20 73 | 61 76 65 20 69 73 20 61 |ish to s|ave is a|
|00000de0| 6c 6c 20 63 6f 6e 74 61 | 69 6e 65 64 20 77 69 74 |ll conta|ined wit|
|00000df0| 68 69 6e 20 6f 6e 65 20 | 64 61 74 61 20 73 74 72 |hin one |data str|
|00000e00| 75 63 74 75 72 65 2c 0d | 28 6d 65 6d 6f 72 79 20 |ucture,.|(memory |
|00000e10| 61 6c 6c 6f 63 61 74 65 | 64 20 77 69 74 68 20 4e |allocate|d with N|
|00000e20| 65 77 50 6f 69 6e 74 65 | 72 29 2e 20 20 42 61 73 |ewPointe|r). Bas|
|00000e30| 69 63 61 6c 6c 79 20 77 | 68 61 74 20 49 27 76 65 |ically w|hat I've|
|00000e40| 20 67 6f 74 20 69 73 3a | 0d 20 20 20 20 74 79 70 | got is:|. typ|
|00000e50| 65 64 65 66 20 73 74 72 | 75 63 74 20 6d 79 53 74 |edef str|uct mySt|
|00000e60| 72 75 63 74 0d 09 7b 0d | 20 20 20 20 20 20 20 20 |ruct..{.| |
|00000e70| 53 74 72 69 6e 67 50 74 | 72 20 61 53 74 72 69 6e |StringPt|r aStrin|
|00000e80| 67 31 2c 20 61 53 74 72 | 69 6e 67 32 2e 2e 2e 0d |g1, aStr|ing2....|
|00000e90| 09 7d 0d 0d 49 73 20 61 | 20 64 61 74 61 20 73 74 |.}..Is a| data st|
|00000ea0| 72 75 63 74 20 6f 66 20 | 73 74 72 69 6e 67 73 20 |ruct of |strings |
|00000eb0| 63 6f 6e 73 69 64 65 72 | 65 64 20 61 20 64 61 74 |consider|ed a dat|
|00000ec0| 61 20 62 75 66 66 65 72 | 20 6d 79 20 74 68 65 20 |a buffer| my the |
|00000ed0| 4f 53 20 6f 72 20 64 6f | 20 49 20 6e 65 65 64 0d |OS or do| I need.|
|00000ee0| 74 6f 20 63 72 61 6d 20 | 6d 79 20 69 6e 66 6f 20 |to cram |my info |
|00000ef0| 69 6e 74 6f 20 73 6f 6d | 65 20 70 61 72 74 69 63 |into som|e partic|
|00000f00| 75 6c 61 72 20 66 6f 72 | 6d 2e 20 20 41 6c 73 6f |ular for|m. Also|
|00000f10| 2c 20 68 6f 77 20 77 6f | 75 6c 64 20 49 20 66 69 |, how wo|uld I fi|
|00000f20| 6e 64 20 74 68 65 0d 73 | 69 7a 65 20 6f 66 20 74 |nd the.s|ize of t|
|00000f30| 68 65 20 64 61 74 61 20 | 62 75 66 66 65 72 20 77 |he data |buffer w|
|00000f40| 68 65 6e 20 6e 6f 74 20 | 54 65 78 74 45 64 69 74 |hen not |TextEdit|
|00000f50| 3f 0d 0d 54 68 61 6e 6b | 73 2c 0d 46 2e 20 54 61 |?..Thank|s,.F. Ta|
|00000f60| 72 65 6b 20 52 6f 67 65 | 72 73 0d 66 74 72 6f 67 |rek Roge|rs.ftrog|
|00000f70| 65 72 73 40 65 6f 73 2e | 6e 63 73 75 2e 65 64 75 |ers@eos.|ncsu.edu|
|00000f80| 0d 0d 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |..++++++|++++++++|
|00000f90| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 0d 0d 3e |++++++++|+++++..>|
|00000fa0| 46 72 6f 6d 20 52 69 63 | 6b 5f 48 6f 6c 7a 67 72 |From Ric|k_Holzgr|
|00000fb0| 61 66 65 40 74 61 6c 69 | 67 65 6e 74 2e 63 6f 6d |afe@tali|gent.com|
|00000fc0| 20 28 52 69 63 6b 20 48 | 6f 6c 7a 67 72 61 66 65 | (Rick H|olzgrafe|
|00000fd0| 29 0d 44 61 74 65 3a 20 | 54 75 65 2c 20 32 31 20 |).Date: |Tue, 21 |
|00000fe0| 4a 75 6e 20 31 39 39 34 | 20 31 38 3a 33 38 3a 35 |Jun 1994| 18:38:5|
|00000ff0| 38 20 47 4d 54 0d 4f 72 | 67 61 6e 69 7a 61 74 69 |8 GMT.Or|ganizati|
|00001000| 6f 6e 3a 20 53 65 6d 69 | 63 6f 6c 6f 6e 20 53 6f |on: Semi|colon So|
|00001010| 66 74 77 61 72 65 0d 0d | 49 6e 20 61 72 74 69 63 |ftware..|In artic|
|00001020| 6c 65 20 3c 32 75 36 70 | 67 73 24 6b 39 63 40 74 |le <2u6p|gs$k9c@t|
|00001030| 61 63 6f 2e 63 63 2e 6e | 63 73 75 2e 65 64 75 3e |aco.cc.n|csu.edu>|
|00001040| 2c 20 66 74 72 6f 67 65 | 72 73 40 65 6f 73 2e 6e |, ftroge|rs@eos.n|
|00001050| 63 73 75 2e 65 64 75 20 | 28 46 52 41 4e 4b 4c 49 |csu.edu |(FRANKLI|
|00001060| 4e 0d 54 41 52 45 4b 20 | 52 4f 47 45 52 53 29 20 |N.TAREK |ROGERS) |
|00001070| 77 72 6f 74 65 3a 0d 0d | 3e 20 49 27 6d 20 74 72 |wrote:..|> I'm tr|
|00001080| 79 69 6e 67 20 74 6f 20 | 73 61 76 65 20 64 61 74 |ying to |save dat|
|00001090| 61 20 69 6e 74 6f 20 61 | 20 66 69 6c 65 2c 20 61 |a into a| file, a|
|000010a0| 6e 64 20 61 6d 20 68 61 | 76 69 6e 67 20 74 72 6f |nd am ha|ving tro|
|000010b0| 75 62 6c 65 20 75 6e 64 | 65 72 73 74 61 6e 64 69 |uble und|erstandi|
|000010c0| 6e 67 0d 3e 20 74 68 65 | 20 75 6e 64 65 72 6c 79 |ng.> the| underly|
|000010d0| 69 6e 67 20 63 6f 6e 63 | 65 70 74 73 2e 20 20 49 |ing conc|epts. I|
|000010e0| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |nside Ma|cintosh |
|000010f0| 22 46 69 6c 65 73 22 20 | 20 67 69 76 65 73 20 61 |"Files" | gives a|
|00001100| 20 76 65 72 74 79 20 64 | 65 74 61 69 6c 65 64 0d | verty d|etailed.|
|00001110| 3e 20 64 69 73 63 75 73 | 73 69 6f 6e 20 6f 6e 20 |> discus|sion on |
|00001120| 74 68 65 20 73 75 62 6a | 65 63 74 2c 20 62 75 74 |the subj|ect, but|
|00001130| 20 61 6c 6c 20 65 78 61 | 6d 70 6c 65 20 64 65 61 | all exa|mple dea|
|00001140| 6c 20 6f 6e 6c 79 20 77 | 69 74 68 20 54 65 78 74 |l only w|ith Text|
|00001150| 45 64 69 74 2e 0d 3e 20 | 20 20 54 68 65 20 46 53 |Edit..> | The FS|
|00001160| 57 72 69 74 65 20 63 6f | 6d 6d 61 6e 64 20 74 61 |Write co|mmand ta|
|00001170| 6b 65 73 20 61 20 70 6f | 69 6e 74 65 72 20 74 6f |kes a po|inter to|
|00001180| 20 61 20 64 61 74 61 20 | 62 75 66 66 65 72 3a 0d | a data |buffer:.|
|00001190| 3e 20 20 20 20 20 57 68 | 61 74 20 69 73 20 61 20 |> Wh|at is a |
|000011a0| 64 61 74 61 20 62 75 66 | 66 65 72 3f 20 20 4a 75 |data buf|fer? Ju|
|000011b0| 73 74 20 61 6e 79 20 61 | 6c 6c 6f 63 61 74 65 64 |st any a|llocated|
|000011c0| 20 62 6c 6f 63 6b 20 6f | 66 20 6d 65 6d 6f 72 79 | block o|f memory|
|000011d0| 3f 0d 0d 52 69 67 68 74 | 2e 20 54 68 65 20 70 6f |?..Right|. The po|
|000011e0| 69 6e 74 65 72 20 63 61 | 6e 20 69 6e 20 66 61 63 |inter ca|n in fac|
|000011f0| 74 20 70 6f 69 6e 74 20 | 74 6f 20 61 6e 79 20 6d |t point |to any m|
|00001200| 65 6d 6f 72 79 20 79 6f | 75 20 70 6c 65 61 73 65 |emory yo|u please|
|00001210| 2c 20 65 76 65 6e 20 74 | 6f 20 61 0d 6c 6f 63 61 |, even t|o a.loca|
|00001220| 6c 20 76 61 72 69 61 62 | 6c 65 20 69 66 20 74 68 |l variab|le if th|
|00001230| 61 74 27 73 20 77 68 61 | 74 20 79 6f 75 20 77 61 |at's wha|t you wa|
|00001240| 6e 74 20 74 6f 20 77 72 | 69 74 65 20 6f 75 74 2e |nt to wr|ite out.|
|00001250| 0d 0d 3e 20 54 68 65 20 | 64 61 74 61 20 49 20 77 |..> The |data I w|
|00001260| 69 73 68 20 74 6f 20 73 | 61 76 65 20 69 73 20 61 |ish to s|ave is a|
|00001270| 6c 6c 20 63 6f 6e 74 61 | 69 6e 65 64 20 77 69 74 |ll conta|ined wit|
|00001280| 68 69 6e 20 6f 6e 65 20 | 64 61 74 61 20 73 74 72 |hin one |data str|
|00001290| 75 63 74 75 72 65 2c 0d | 3e 20 28 6d 65 6d 6f 72 |ucture,.|> (memor|
|000012a0| 79 20 61 6c 6c 6f 63 61 | 74 65 64 20 77 69 74 68 |y alloca|ted with|
|000012b0| 20 4e 65 77 50 6f 69 6e | 74 65 72 29 2e 20 20 42 | NewPoin|ter). B|
|000012c0| 61 73 69 63 61 6c 6c 79 | 20 77 68 61 74 20 49 27 |asically| what I'|
|000012d0| 76 65 20 67 6f 74 20 69 | 73 3a 0d 3e 20 20 20 20 |ve got i|s:.> |
|000012e0| 20 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 | typedef| struct |
|000012f0| 6d 79 53 74 72 75 63 74 | 0d 3e 20 09 7b 0d 3e 20 |myStruct|.> .{.> |
|00001300| 20 20 20 20 20 20 20 20 | 53 74 72 69 6e 67 50 74 | |StringPt|
|00001310| 72 20 61 53 74 72 69 6e | 67 31 2c 20 61 53 74 72 |r aStrin|g1, aStr|
|00001320| 69 6e 67 32 2e 2e 2e 0d | 3e 20 09 7d 0d 0d 59 6f |ing2....|> .}..Yo|
|00001330| 75 20 63 6f 75 6c 64 20 | 77 72 69 74 65 20 6f 75 |u could |write ou|
|00001340| 74 20 74 68 65 20 65 6e | 74 69 72 65 20 73 74 72 |t the en|tire str|
|00001350| 75 63 74 20 62 79 20 70 | 61 73 73 69 6e 67 20 61 |uct by p|assing a|
|00001360| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 69 74 20 74 | pointer| to it t|
|00001370| 6f 0d 46 53 57 72 69 74 | 65 2c 20 67 65 74 74 69 |o.FSWrit|e, getti|
|00001380| 6e 67 20 69 74 73 20 73 | 69 7a 65 20 66 72 6f 6d |ng its s|ize from|
|00001390| 20 27 73 69 7a 65 6f 66 | 20 6d 79 53 74 72 75 63 | 'sizeof| myStruc|
|000013a0| 74 27 2e 20 48 6f 77 65 | 76 65 72 2c 20 74 68 61 |t'. Howe|ver, tha|
|000013b0| 74 27 73 20 6e 6f 74 20 | 77 68 61 74 0d 79 6f 75 |t's not |what.you|
|000013c0| 20 77 61 6e 74 20 74 6f | 20 64 6f 2c 20 62 65 63 | want to| do, bec|
|000013d0| 61 75 73 65 20 79 6f 75 | 72 20 73 74 72 75 63 74 |ause you|r struct|
|000013e0| 75 72 65 20 63 6f 6e 74 | 61 69 6e 73 20 6f 6e 6c |ure cont|ains onl|
|000013f0| 79 20 74 68 65 20 70 6f | 69 6e 74 65 72 73 20 74 |y the po|inters t|
|00001400| 6f 20 74 68 65 0d 73 74 | 72 69 6e 67 73 2c 20 61 |o the.st|rings, a|
|00001410| 6e 64 20 6e 6f 74 20 74 | 68 65 20 73 74 72 69 6e |nd not t|he strin|
|00001420| 67 73 27 20 63 6f 6e 74 | 65 6e 74 73 2e 20 54 6f |gs' cont|ents. To|
|00001430| 20 77 72 69 74 65 20 6f | 75 74 20 74 68 65 20 73 | write o|ut the s|
|00001440| 74 72 69 6e 67 73 2c 20 | 63 61 6c 6c 0d 46 53 57 |trings, |call.FSW|
|00001450| 72 69 74 65 20 6f 6e 63 | 65 20 66 6f 72 20 65 61 |rite onc|e for ea|
|00001460| 63 68 20 73 74 72 69 6e | 67 2c 20 6c 69 6b 65 20 |ch strin|g, like |
|00001470| 74 68 69 73 3a 0d 0d 20 | 20 20 6c 6f 6e 67 20 64 |this:.. | long d|
|00001480| 61 74 61 4c 65 6e 67 74 | 68 20 3d 20 28 28 28 6c |ataLengt|h = (((l|
|00001490| 6f 6e 67 29 6d 79 53 74 | 72 75 63 74 2e 61 53 74 |ong)mySt|ruct.aSt|
|000014a0| 72 69 6e 67 31 5b 30 5d | 29 20 26 20 30 78 66 66 |ring1[0]|) & 0xff|
|000014b0| 29 20 2b 20 31 3b 0d 20 | 20 20 46 53 57 72 69 74 |) + 1;. | FSWrit|
|000014c0| 65 20 28 72 65 66 4e 75 | 6d 2c 20 26 64 61 74 61 |e (refNu|m, &data|
|000014d0| 4c 65 6e 67 74 68 2c 20 | 28 70 74 72 29 6d 79 53 |Length, |(ptr)myS|
|000014e0| 74 72 75 63 74 2e 61 53 | 74 72 69 6e 67 31 29 3b |truct.aS|tring1);|
|000014f0| 0d 0d 54 68 65 20 65 78 | 61 6d 70 6c 65 20 61 73 |..The ex|ample as|
|00001500| 73 75 6d 65 73 20 74 68 | 61 74 20 79 6f 75 72 20 |sumes th|at your |
|00001510| 73 74 72 69 6e 67 73 20 | 61 72 65 20 69 6e 20 50 |strings |are in P|
|00001520| 61 73 63 61 6c 20 66 6f | 72 6d 61 74 2c 20 73 6f |ascal fo|rmat, so|
|00001530| 20 74 68 61 74 20 74 68 | 65 0d 66 69 72 73 74 20 | that th|e.first |
|00001540| 62 79 74 65 20 6f 66 20 | 74 68 65 20 73 74 72 69 |byte of |the stri|
|00001550| 6e 67 20 67 69 76 65 73 | 20 74 68 65 20 73 74 72 |ng gives| the str|
|00001560| 69 6e 67 27 73 20 6c 65 | 6e 67 74 68 2e 20 54 68 |ing's le|ngth. Th|
|00001570| 65 20 70 61 72 74 20 61 | 62 6f 75 74 20 27 26 30 |e part a|bout '&0|
|00001580| 78 66 66 27 0d 65 6e 73 | 75 72 65 73 20 74 68 61 |xff'.ens|ures tha|
|00001590| 74 20 79 6f 75 20 64 6f | 6e 27 74 20 67 65 74 20 |t you do|n't get |
|000015a0| 61 20 6e 65 67 61 74 69 | 76 65 20 6c 65 6e 67 74 |a negati|ve lengt|
|000015b0| 68 20 66 6f 72 20 73 74 | 72 69 6e 67 73 20 74 68 |h for st|rings th|
|000015c0| 61 74 20 68 61 76 65 20 | 74 68 65 20 68 69 67 68 |at have |the high|
|000015d0| 0d 62 69 74 20 73 65 74 | 20 69 6e 20 74 68 65 69 |.bit set| in thei|
|000015e0| 72 20 6c 65 6e 67 74 68 | 20 62 79 74 65 3b 20 69 |r length| byte; i|
|000015f0| 74 20 69 73 6e 27 74 20 | 61 6c 77 61 79 73 20 6e |t isn't |always n|
|00001600| 65 63 65 73 73 61 72 79 | 20 62 75 74 20 62 65 74 |ecessary| but bet|
|00001610| 74 65 72 20 73 61 66 65 | 0d 74 68 61 6e 20 73 6f |ter safe|.than so|
|00001620| 72 72 79 2e 0d 0d 54 68 | 65 20 65 78 61 6d 70 6c |rry...Th|e exampl|
|00001630| 65 20 61 6c 73 6f 20 77 | 72 69 74 65 73 20 65 61 |e also w|rites ea|
|00001640| 63 68 20 73 74 72 69 6e | 67 20 6f 75 74 20 77 69 |ch strin|g out wi|
|00001650| 74 68 20 69 74 73 20 70 | 72 6f 70 65 72 20 6c 65 |th its p|roper le|
|00001660| 6e 67 74 68 3a 20 6e 6f | 20 64 69 73 6b 0d 73 70 |ngth: no| disk.sp|
|00001670| 61 63 65 20 69 73 20 77 | 61 73 74 65 64 2e 20 54 |ace is w|asted. T|
|00001680| 68 69 73 20 6d 65 61 6e | 73 20 74 68 61 74 20 77 |his mean|s that w|
|00001690| 68 65 6e 20 79 6f 75 20 | 72 65 61 64 20 74 68 65 |hen you |read the|
|000016a0| 20 73 74 72 69 6e 67 73 | 20 62 61 63 6b 20 69 6e | strings| back in|
|000016b0| 2c 20 79 6f 75 27 6c 6c | 0d 68 61 76 65 20 74 6f |, you'll|.have to|
|000016c0| 20 72 65 61 64 20 74 68 | 65 20 6c 65 6e 67 74 68 | read th|e length|
|000016d0| 20 62 79 74 65 20 66 69 | 72 73 74 20 74 6f 20 73 | byte fi|rst to s|
|000016e0| 65 65 20 68 6f 77 20 6c | 6f 6e 67 20 74 68 65 20 |ee how l|ong the |
|000016f0| 73 74 72 69 6e 67 20 61 | 63 74 75 61 6c 6c 79 20 |string a|ctually |
|00001700| 69 73 2e 0d 41 6e 20 61 | 6c 74 65 72 6e 61 74 69 |is..An a|lternati|
|00001710| 76 65 20 69 73 20 74 6f | 20 61 6c 77 61 79 73 20 |ve is to| always |
|00001720| 77 72 69 74 65 20 6f 75 | 74 20 32 35 36 20 62 79 |write ou|t 256 by|
|00001730| 74 65 73 20 66 6f 72 20 | 65 61 63 68 20 73 74 72 |tes for |each str|
|00001740| 69 6e 67 20 28 6f 72 20 | 70 65 72 68 61 70 73 0d |ing (or |perhaps.|
|00001750| 73 6f 6d 65 20 73 68 6f | 72 74 65 72 20 6c 65 6e |some sho|rter len|
|00001760| 67 74 68 20 67 75 61 72 | 61 6e 74 65 65 64 20 74 |gth guar|anteed t|
|00001770| 6f 20 62 65 20 6c 6f 6e | 67 20 65 6e 6f 75 67 68 |o be lon|g enough|
|00001780| 20 66 6f 72 20 79 6f 75 | 72 20 70 75 72 70 6f 73 | for you|r purpos|
|00001790| 65 73 29 2e 20 54 68 69 | 73 0d 77 61 73 74 65 73 |es). Thi|s.wastes|
|000017a0| 20 73 6f 6d 65 20 73 70 | 61 63 65 20 62 75 74 20 | some sp|ace but |
|000017b0| 65 6e 73 75 72 65 73 20 | 61 20 73 69 6d 70 6c 65 |ensures |a simple|
|000017c0| 72 20 61 6e 64 20 65 61 | 73 69 65 72 2d 74 6f 2d |r and ea|sier-to-|
|000017d0| 72 65 61 64 20 66 69 6c | 65 20 66 6f 72 6d 61 74 |read fil|e format|
|000017e0| 2e 0d 4e 6f 72 6d 61 6c | 6c 79 20 49 20 77 6f 75 |..Normal|ly I wou|
|000017f0| 6c 64 6e 27 74 20 72 65 | 63 6f 6d 6d 65 6e 64 20 |ldn't re|commend |
|00001800| 77 61 6e 74 6f 6e 6c 79 | 20 77 61 73 74 69 6e 67 |wantonly| wasting|
|00001810| 20 73 70 61 63 65 20 62 | 75 74 20 69 66 20 69 74 | space b|ut if it|
|00001820| 27 73 20 6a 75 73 74 20 | 61 20 66 65 77 0d 73 74 |'s just |a few.st|
|00001830| 72 69 6e 67 73 20 74 68 | 65 20 77 61 73 74 61 67 |rings th|e wastag|
|00001840| 65 20 6d 61 79 20 6e 6f | 74 20 62 65 20 73 69 67 |e may no|t be sig|
|00001850| 6e 69 66 69 63 61 6e 74 | 2e 0d 0d 3e 20 68 6f 77 |nificant|...> how|
|00001860| 20 77 6f 75 6c 64 20 49 | 20 66 69 6e 64 20 74 68 | would I| find th|
|00001870| 65 0d 3e 20 73 69 7a 65 | 20 6f 66 20 74 68 65 20 |e.> size| of the |
|00001880| 64 61 74 61 20 62 75 66 | 66 65 72 20 77 68 65 6e |data buf|fer when|
|00001890| 20 6e 6f 74 20 54 65 78 | 74 45 64 69 74 3f 0d 0d | not Tex|tEdit?..|
|000018a0| 54 68 61 74 20 65 6e 74 | 69 72 65 6c 79 20 64 65 |That ent|irely de|
|000018b0| 70 65 6e 64 73 20 6f 6e | 20 74 68 65 20 6e 61 74 |pends on| the nat|
|000018c0| 75 72 65 20 61 6e 64 20 | 73 6f 75 72 63 65 20 6f |ure and |source o|
|000018d0| 66 20 74 68 65 20 64 61 | 74 61 2e 20 54 68 65 20 |f the da|ta. The |
|000018e0| 73 6f 6c 75 74 69 6f 6e | 0d 66 6f 72 20 50 61 73 |solution|.for Pas|
|000018f0| 63 61 6c 20 73 74 72 69 | 6e 67 73 20 69 73 20 73 |cal stri|ngs is s|
|00001900| 68 6f 77 6e 20 61 62 6f | 76 65 2e 0d 0d 3e 20 46 |hown abo|ve...> F|
|00001910| 2e 20 54 61 72 65 6b 20 | 52 6f 67 65 72 73 0d 3e |. Tarek |Rogers.>|
|00001920| 20 66 74 72 6f 67 65 72 | 73 40 65 6f 73 2e 6e 63 | ftroger|s@eos.nc|
|00001930| 73 75 2e 65 64 75 0d 0d | 2d 2d 20 52 69 63 6b 20 |su.edu..|-- Rick |
|00001940| 48 6f 6c 7a 67 72 61 66 | 65 2c 20 61 20 6d 65 6d |Holzgraf|e, a mem|
|00001950| 62 65 72 20 6f 66 20 74 | 68 65 20 54 61 6c 69 67 |ber of t|he Talig|
|00001960| 65 6e 74 73 69 61 0d 20 | 20 20 52 69 63 6b 5f 48 |entsia. | Rick_H|
|00001970| 6f 6c 7a 67 72 61 66 65 | 40 74 61 6c 69 67 65 6e |olzgrafe|@taligen|
|00001980| 74 2e 63 6f 6d 0d 20 20 | 20 72 6d 68 40 74 61 6c |t.com. | rmh@tal|
|00001990| 69 67 65 6e 74 2e 63 6f | 6d 0d 0d 2d 2d 2d 2d 2d |igent.co|m..-----|
|000019a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000019b0| 2d 2d 2d 2d 2d 2d 0d 0d | 3e 46 72 6f 6d 20 42 69 |------..|>From Bi|
|000019c0| 6c 6c 20 4d 63 43 6c 6f | 73 6b 65 79 20 3c 62 69 |ll McClo|skey <bi|
|000019d0| 6c 6c 6d 40 69 6e 74 65 | 72 61 63 63 65 73 73 2e |llm@inte|raccess.|
|000019e0| 63 6f 6d 3e 0d 53 75 62 | 6a 65 63 74 3a 20 43 4f |com>.Sub|ject: CO|
|000019f0| 44 45 20 52 65 73 6f 75 | 72 63 65 73 0d 44 61 74 |DE Resou|rces.Dat|
|00001a00| 65 3a 20 31 39 20 4a 75 | 6e 20 31 39 39 34 20 30 |e: 19 Ju|n 1994 0|
|00001a10| 31 3a 31 34 3a 35 35 20 | 47 4d 54 0d 4f 72 67 61 |1:14:55 |GMT.Orga|
|00001a20| 6e 69 7a 61 74 69 6f 6e | 3a 20 3f 3f 3f 0d 0d 49 |nization|: ???..I|
|00001a30| 66 20 49 20 77 61 73 20 | 67 6f 69 6e 67 20 74 6f |f I was |going to|
|00001a40| 20 77 72 69 74 65 20 61 | 20 27 43 4f 44 45 27 20 | write a| 'CODE' |
|00001a50| 72 65 73 6f 75 72 63 65 | 20 69 6e 20 54 68 69 6e |resource| in Thin|
|00001a60| 6b 20 43 2c 20 68 6f 77 | 20 63 6f 75 6c 64 20 49 |k C, how| could I|
|00001a70| 20 65 78 65 63 75 74 65 | 0d 69 74 20 69 6e 20 6d | execute|.it in m|
|00001a80| 79 20 70 72 6f 67 72 61 | 6d 3f 20 41 6c 73 6f 2c |y progra|m? Also,|
|00001a90| 20 61 72 65 20 74 68 65 | 72 65 20 61 6e 79 20 65 | are the|re any e|
|00001aa0| 78 61 6d 70 6c 65 73 20 | 66 6f 72 20 74 68 69 73 |xamples |for this|
|00001ab0| 20 61 6e 79 77 68 65 72 | 65 3f 0d 0d 54 68 61 6e | anywher|e?..Than|
|00001ac0| 6b 73 20 66 6f 72 20 61 | 6e 79 20 68 65 6c 70 2c |ks for a|ny help,|
|00001ad0| 0d 2d 42 69 6c 6c 0d 0d | 2b 2b 2b 2b 2b 2b 2b 2b |.-Bill..|++++++++|
|00001ae0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00001af0| 2b 2b 2b 0d 0d 3e 46 72 | 6f 6d 20 4d 61 72 6b 20 |+++..>Fr|om Mark |
|00001b00| 48 61 6e 72 65 6b 20 3c | 68 61 6e 72 65 6b 40 63 |Hanrek <|hanrek@c|
|00001b10| 74 73 2e 63 6f 6d 3e 0d | 44 61 74 65 3a 20 53 75 |ts.com>.|Date: Su|
|00001b20| 6e 2c 20 31 39 20 4a 75 | 6e 20 31 39 39 34 20 30 |n, 19 Ju|n 1994 0|
|00001b30| 35 3a 30 38 3a 32 35 20 | 47 4d 54 0d 4f 72 67 61 |5:08:25 |GMT.Orga|
|00001b40| 6e 69 7a 61 74 69 6f 6e | 3a 20 54 68 65 20 49 6e |nization|: The In|
|00001b50| 66 6f 72 6d 61 74 69 6f | 6e 20 57 6f 72 6b 73 68 |formatio|n Worksh|
|00001b60| 6f 70 0d 0d 49 6e 20 61 | 72 74 69 63 6c 65 20 3c |op..In a|rticle <|
|00001b70| 32 75 30 36 36 66 24 61 | 76 6c 40 6d 61 69 6c 68 |2u066f$a|vl@mailh|
|00001b80| 6f 73 74 2e 69 6e 74 65 | 72 61 63 63 65 73 73 2e |ost.inte|raccess.|
|00001b90| 63 6f 6d 3e 20 42 69 6c | 6c 20 4d 63 43 6c 6f 73 |com> Bil|l McClos|
|00001ba0| 6b 65 79 2c 0d 62 69 6c | 6c 6d 40 69 6e 74 65 72 |key,.bil|lm@inter|
|00001bb0| 61 63 63 65 73 73 2e 63 | 6f 6d 20 77 72 69 74 65 |access.c|om write|
|00001bc0| 73 3a 0d 0d 3e 20 49 66 | 20 49 20 77 61 73 20 67 |s:..> If| I was g|
|00001bd0| 6f 69 6e 67 20 74 6f 20 | 77 72 69 74 65 20 61 20 |oing to |write a |
|00001be0| 27 43 4f 44 45 27 20 72 | 65 73 6f 75 72 63 65 20 |'CODE' r|esource |
|00001bf0| 69 6e 20 54 68 69 6e 6b | 20 43 2c 20 68 6f 77 20 |in Think| C, how |
|00001c00| 63 6f 75 6c 64 20 49 0d | 3e 20 65 78 65 63 75 74 |could I.|> execut|
|00001c10| 65 20 69 74 20 69 6e 20 | 6d 79 20 70 72 6f 67 72 |e it in |my progr|
|00001c20| 61 6d 3f 20 41 6c 73 6f | 2c 20 61 72 65 20 74 68 |am? Also|, are th|
|00001c30| 65 72 65 20 61 6e 79 20 | 65 78 61 6d 70 6c 65 73 |ere any |examples|
|00001c40| 20 66 6f 72 20 74 68 69 | 73 0d 3e 20 61 6e 79 77 | for thi|s.> anyw|
|00001c50| 68 65 72 65 3f 0d 0d 59 | 6f 75 20 77 6f 75 6c 64 |here?..Y|ou would|
|00001c60| 20 63 65 72 74 61 69 6e | 6c 79 20 77 61 6e 74 20 | certain|ly want |
|00001c70| 74 6f 20 63 6f 70 79 20 | 74 68 65 20 77 61 79 20 |to copy |the way |
|00001c80| 69 74 20 69 73 20 64 6f | 6e 65 20 69 6e 20 73 6f |it is do|ne in so|
|00001c90| 6d 65 20 65 78 61 6d 70 | 6c 65 0d 73 6f 75 72 63 |me examp|le.sourc|
|00001ca0| 65 20 63 6f 64 65 2e 20 | 20 49 20 70 72 65 70 61 |e code. | I prepa|
|00001cb0| 72 65 64 20 61 6e 20 61 | 6e 73 65 77 72 20 74 6f |red an a|nsewr to|
|00001cc0| 20 61 20 71 75 65 73 74 | 69 6f 6e 20 6c 69 6b 65 | a quest|ion like|
|00001cd0| 20 79 6f 75 72 73 20 62 | 65 66 6f 72 65 2c 20 73 | yours b|efore, s|
|00001ce0| 6f 0d 49 27 76 65 20 61 | 74 74 61 63 68 65 64 20 |o.I've a|ttached |
|00001cf0| 69 74 20 62 65 6c 6f 77 | 2e 20 20 49 74 20 69 73 |it below|. It is|
|00001d00| 20 72 65 61 64 79 20 74 | 6f 20 62 65 20 70 61 73 | ready t|o be pas|
|00001d10| 74 65 64 20 69 6e 20 61 | 6e 64 20 63 6f 6d 70 69 |ted in a|nd compi|
|00001d20| 6c 65 64 2e 0d 0d 41 6c | 73 6f 2c 20 69 6e 20 79 |led...Al|so, in y|
|00001d30| 6f 75 72 20 71 75 65 73 | 74 69 6f 6e 73 2c 20 79 |our ques|tions, y|
|00001d40| 6f 75 20 63 6f 75 6c 64 | 20 68 61 76 65 20 6d 65 |ou could| have me|
|00001d50| 61 6e 74 20 3e 3e 20 27 | 43 4f 44 45 27 20 3c 3c |ant >> '|CODE' <<|
|00001d60| 20 6c 69 74 65 72 61 6c | 6c 79 20 6f 72 0d 66 69 | literal|ly or.fi|
|00001d70| 67 75 72 61 74 69 76 65 | 6c 79 2e 20 20 4a 75 73 |gurative|ly. Jus|
|00001d80| 74 20 69 6e 20 63 61 73 | 65 2c 20 49 20 77 61 6e |t in cas|e, I wan|
|00001d90| 74 65 64 20 74 6f 20 6d | 65 6e 74 69 6f 6e 20 74 |ted to m|ention t|
|00001da0| 68 61 74 20 72 65 73 6f | 75 72 63 65 73 20 6f 66 |hat reso|urces of|
|00001db0| 20 74 79 70 65 0d 27 43 | 4f 44 45 27 20 73 68 6f | type.'C|ODE' sho|
|00001dc0| 75 6c 64 20 72 65 6d 61 | 69 6e 20 72 65 73 65 72 |uld rema|in reser|
|00001dd0| 76 65 64 20 66 6f 72 20 | 74 68 65 20 74 72 61 64 |ved for |the trad|
|00001de0| 69 74 69 6f 6e 61 6c 20 | 77 61 79 20 61 70 70 6c |itional |way appl|
|00001df0| 69 63 61 74 69 6f 6e 73 | 20 61 72 65 0d 63 6f 6e |ications| are.con|
|00001e00| 73 74 72 75 63 74 65 64 | 2c 20 73 6f 20 49 20 66 |structed|, so I f|
|00001e10| 69 67 75 72 65 20 79 6f | 75 20 61 72 65 20 61 73 |igure yo|u are as|
|00001e20| 6b 69 6e 67 20 68 6f 77 | 20 79 6f 75 20 77 75 6c |king how| you wul|
|00001e30| 64 20 63 72 65 61 74 65 | 20 61 20 63 75 73 74 6f |d create| a custo|
|00001e40| 6d 20 63 6f 64 65 0d 72 | 65 73 6f 75 72 63 65 20 |m code.r|esource |
|00001e50| 77 69 74 68 20 61 20 72 | 65 73 6f 75 72 63 65 20 |with a r|esource |
|00001e60| 74 79 70 65 20 6f 66 2c | 20 73 61 79 2c 20 27 43 |type of,| say, 'C|
|00001e70| 6f 44 65 27 2c 20 6f 72 | 20 58 43 4d 44 2c 20 6f |oDe', or| XCMD, o|
|00001e80| 72 20 27 62 69 6c 6c 27 | 20 6f 72 0d 77 68 61 74 |r 'bill'| or.what|
|00001e90| 65 76 65 72 2e 20 3a 29 | 0d 0d 54 68 65 72 65 20 |ever. :)|..There |
|00001ea0| 61 72 65 20 65 78 61 6d | 70 6c 65 73 20 61 72 6f |are exam|ples aro|
|00001eb0| 75 6e 64 2e 20 42 65 20 | 73 75 72 65 20 74 6f 20 |und. Be |sure to |
|00001ec0| 6c 6f 6f 6b 20 69 6e 20 | 74 68 65 20 73 6f 75 72 |look in |the sour|
|00001ed0| 63 65 20 63 6f 64 65 20 | 66 6f 6c 64 65 72 0d 75 |ce code |folder.u|
|00001ee0| 6e 64 65 72 20 22 64 65 | 76 22 20 69 6e 20 73 75 |nder "de|v" in su|
|00001ef0| 6d 65 78 20 61 6e 64 20 | 65 6c 73 65 77 68 65 72 |mex and |elsewher|
|00001f00| 65 2e 0d 0d 48 6f 70 65 | 20 74 68 69 73 20 68 65 |e...Hope| this he|
|00001f10| 6c 70 73 2e 0d 0d 4d 61 | 72 6b 20 48 61 6e 72 65 |lps...Ma|rk Hanre|
|00001f20| 6b 0d 0d 0d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |k...====|========|
|00001f30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001f40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001f50| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001f60| 3d 3d 3d 3d 3d 3d 3d 0d | 43 61 6c 6c 69 6e 67 20 |=======.|Calling |
|00001f70| 61 20 43 6f 64 65 20 52 | 65 73 6f 75 72 63 65 20 |a Code R|esource |
|00001f80| 66 72 6f 6d 20 61 6e 20 | 41 70 70 6c 69 63 61 74 |from an |Applicat|
|00001f90| 69 6f 6e 0d 0d 0d 2f 2f | 0d 2f 2f 20 20 46 69 72 |ion...//|.// Fir|
|00001fa0| 73 74 2c 20 64 65 74 65 | 72 6d 69 6e 65 20 61 6e |st, dete|rmine an|
|00001fb0| 64 20 64 65 66 69 6e 65 | 20 74 68 65 20 69 6e 74 |d define| the int|
|00001fc0| 65 72 66 61 63 65 20 79 | 6f 75 20 77 6f 75 6c 64 |erface y|ou would|
|00001fd0| 20 6c 69 6b 65 2e 20 0d | 2f 2f 20 20 46 6f 72 20 | like. .|// For |
|00001fe0| 69 6e 73 74 61 6e 63 65 | 2e 2e 2e 0d 2f 2f 0d 0d |instance|....//..|
|00001ff0| 74 79 70 65 64 65 66 20 | 70 61 73 63 61 6c 20 4f |typedef |pascal O|
|00002000| 53 45 72 72 20 28 2a 43 | 6f 64 65 52 65 73 6f 75 |SErr (*C|odeResou|
|00002010| 72 63 65 50 72 6f 63 50 | 74 72 29 28 20 6c 6f 6e |rceProcP|tr)( lon|
|00002020| 67 20 70 61 72 61 6d 31 | 2c 20 73 68 6f 72 74 20 |g param1|, short |
|00002030| 70 61 72 61 6d 32 20 29 | 3b 0d 0d 0d 2f 2f 0d 2f |param2 )|;...//./|
|00002040| 2f 20 20 48 65 72 65 27 | 73 20 61 20 66 75 6e 63 |/ Here'|s a func|
|00002050| 74 69 6f 6e 20 69 6e 20 | 79 6f 75 72 20 61 70 70 |tion in |your app|
|00002060| 6c 69 63 61 74 69 6f 6e | 20 74 68 61 74 20 77 69 |lication| that wi|
|00002070| 6c 6c 20 6c 6f 61 64 20 | 61 6e 64 20 63 61 6c 6c |ll load |and call|
|00002080| 20 74 68 61 74 0d 2f 2f | 20 20 6b 69 6e 64 20 6f | that.//| kind o|
|00002090| 66 20 63 6f 64 65 20 72 | 65 73 6f 75 72 63 65 2c |f code r|esource,|
|000020a0| 20 77 68 69 63 68 20 79 | 6f 75 27 76 65 20 63 6f | which y|ou've co|
|000020b0| 6d 70 69 6c 65 64 20 73 | 65 70 61 72 61 74 65 6c |mpiled s|eparatel|
|000020c0| 79 2e 0d 2f 2f 0d 0d 0d | 4f 53 45 72 72 20 43 61 |y..//...|OSErr Ca|
|000020d0| 6c 6c 43 6f 64 65 52 65 | 73 6f 75 72 63 65 28 20 |llCodeRe|source( |
|000020e0| 6c 6f 6e 67 20 70 61 72 | 61 6d 31 2c 20 73 68 6f |long par|am1, sho|
|000020f0| 72 74 20 70 61 72 61 6d | 32 20 29 0d 7b 0d 20 20 |rt param|2 ).{. |
|00002100| 48 61 6e 64 6c 65 20 20 | 20 20 20 20 20 20 20 20 |Handle | |
|00002110| 20 20 20 20 20 74 68 65 | 43 6f 64 65 52 65 73 6f | the|CodeReso|
|00002120| 75 72 63 65 3b 0d 20 20 | 43 6f 64 65 52 65 73 6f |urce;. |CodeReso|
|00002130| 75 72 63 65 50 72 6f 63 | 50 74 72 20 20 74 68 65 |urceProc|Ptr the|
|00002140| 45 6e 74 72 79 50 6f 69 | 6e 74 3b 0d 20 20 4f 53 |EntryPoi|nt;. OS|
|00002150| 45 72 72 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |Err | |
|00002160| 20 20 20 65 72 72 3b 0d | 0d 20 20 2f 2f 20 47 65 | err;.|. // Ge|
|00002170| 74 20 69 74 0d 0d 20 20 | 74 68 65 43 6f 64 65 52 |t it.. |theCodeR|
|00002180| 65 73 6f 75 72 63 65 20 | 3d 20 47 65 74 52 65 73 |esource |= GetRes|
|00002190| 6f 75 72 63 65 28 20 27 | 62 69 6c 6c 27 2c 20 31 |ource( '|bill', 1|
|000021a0| 32 38 20 29 3b 0d 20 20 | 69 66 20 28 20 65 72 72 |28 );. |if ( err|
|000021b0| 20 3d 20 52 65 73 45 72 | 72 6f 72 28 29 29 0d 20 | = ResEr|ror()). |
|000021c0| 20 20 20 20 72 65 74 75 | 72 6e 28 20 65 72 72 20 | retu|rn( err |
|000021d0| 29 3b 0d 0d 20 20 2f 2f | 20 50 6f 73 69 74 69 6f |);.. //| Positio|
|000021e0| 6e 20 69 74 0d 0d 20 20 | 44 65 74 61 63 68 52 65 |n it.. |DetachRe|
|000021f0| 73 6f 75 72 63 65 28 20 | 74 68 65 43 6f 64 65 52 |source( |theCodeR|
|00002200| 65 73 6f 75 72 63 65 20 | 29 3b 0d 20 20 4d 6f 76 |esource |);. Mov|
|00002210| 65 48 48 69 28 20 74 68 | 65 43 6f 64 65 52 65 73 |eHHi( th|eCodeRes|
|00002220| 6f 75 72 63 65 20 29 3b | 0d 20 20 48 4c 6f 63 6b |ource );|. HLock|
|00002230| 28 20 74 68 65 43 6f 64 | 65 52 65 73 6f 75 72 63 |( theCod|eResourc|
|00002240| 65 20 29 3b 0d 20 20 20 | 0d 20 20 2f 2f 20 4c 6f |e );. |. // Lo|
|00002250| 63 61 74 65 20 69 74 20 | 61 6e 64 20 53 74 72 69 |cate it |and Stri|
|00002260| 70 20 69 74 0d 0d 20 20 | 74 68 65 45 6e 74 72 79 |p it.. |theEntry|
|00002270| 50 6f 69 6e 74 20 3d 20 | 28 43 6f 64 65 52 65 73 |Point = |(CodeRes|
|00002280| 6f 75 72 63 65 50 72 6f | 63 50 74 72 29 20 53 74 |ourcePro|cPtr) St|
|00002290| 72 69 70 41 64 64 72 65 | 73 73 28 20 2a 74 68 65 |ripAddre|ss( *the|
|000022a0| 43 6f 64 65 52 65 73 6f | 75 72 63 65 20 29 3b 0d |CodeReso|urce );.|
|000022b0| 0d 20 20 2f 2f 20 4a 75 | 6d 70 20 69 6e 74 6f 20 |. // Ju|mp into |
|000022c0| 69 74 0d 0d 20 20 65 72 | 72 20 3d 20 28 2a 74 68 |it.. er|r = (*th|
|000022d0| 65 45 6e 74 72 79 50 6f | 69 6e 74 29 28 20 70 61 |eEntryPo|int)( pa|
|000022e0| 72 61 6d 31 2c 20 70 61 | 72 61 6d 32 20 29 3b 20 |ram1, pa|ram2 ); |
|000022f0| 0d 0d 20 20 2f 2f 20 44 | 69 73 70 6f 73 65 20 6f |.. // D|ispose o|
|00002300| 66 20 69 74 0d 0d 20 20 | 48 55 6e 6c 6f 63 6b 28 |f it.. |HUnlock(|
|00002310| 20 74 68 65 43 6f 64 65 | 52 65 73 6f 75 72 63 65 | theCode|Resource|
|00002320| 20 29 3b 0d 20 20 44 69 | 73 70 6f 73 65 48 61 6e | );. Di|sposeHan|
|00002330| 64 6c 65 28 20 74 68 65 | 43 6f 64 65 52 65 73 6f |dle( the|CodeReso|
|00002340| 75 72 63 65 20 29 3b 0d | 0d 20 20 72 65 74 75 72 |urce );.|. retur|
|00002350| 6e 28 20 65 72 72 20 29 | 3b 0d 7d 0d 0d 0d 0d 2d |n( err )|;.}....-|
|00002360| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|00002370| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002380| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002390| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 54 68 65 20 |--------|---.The |
|000023a0| 43 6f 64 65 20 52 65 73 | 6f 75 72 63 65 20 49 74 |Code Res|ource It|
|000023b0| 73 65 6c 66 0d 0d 0d 2f | 2f 20 59 6f 75 72 20 63 |self.../|/ Your c|
|000023c0| 6f 64 65 20 72 65 73 6f | 75 72 63 65 2c 20 63 6f |ode reso|urce, co|
|000023d0| 6d 70 69 6c 65 64 20 73 | 65 70 61 72 61 74 65 6c |mpiled s|eparatel|
|000023e0| 79 2c 20 77 6f 75 6c 64 | 20 73 74 61 72 74 0d 2f |y, would| start./|
|000023f0| 2f 20 6c 69 66 65 20 6c | 69 6b 65 20 74 68 69 73 |/ life l|ike this|
|00002400| 2e 2e 2e 0d 0d 0d 23 69 | 6e 63 6c 75 64 65 20 3c |......#i|nclude <|
|00002410| 53 65 74 55 70 41 34 2e | 68 3e 0d 0d 70 61 73 63 |SetUpA4.|h>..pasc|
|00002420| 61 6c 20 4f 53 45 72 72 | 20 6d 61 69 6e 28 20 6c |al OSErr| main( l|
|00002430| 6f 6e 67 20 70 61 72 61 | 6d 31 2c 20 73 68 6f 72 |ong para|m1, shor|
|00002440| 74 20 70 61 72 61 6d 32 | 20 29 3b 0d 0d 70 61 73 |t param2| );..pas|
|00002450| 63 61 6c 20 4f 53 45 72 | 72 20 6d 61 69 6e 28 20 |cal OSEr|r main( |
|00002460| 6c 6f 6e 67 20 70 61 72 | 61 6d 31 2c 20 73 68 6f |long par|am1, sho|
|00002470| 72 74 20 70 61 72 61 6d | 32 20 29 0d 7b 0d 09 52 |rt param|2 ).{..R|
|00002480| 65 6d 65 6d 62 65 72 41 | 30 28 29 3b 0d 09 53 65 |ememberA|0();..Se|
|00002490| 74 55 70 41 34 28 29 3b | 0d 0d 0d 20 20 20 20 2f |tUpA4();|... /|
|000024a0| 2f 20 62 6c 61 20 62 6c | 61 20 62 6c 61 0d 0d 0d |/ bla bl|a bla...|
|000024b0| 20 20 20 20 52 65 73 74 | 6f 72 65 41 34 28 29 3b | Rest|oreA4();|
|000024c0| 0d 20 20 20 20 72 65 74 | 75 72 6e 28 20 65 72 72 |. ret|urn( err|
|000024d0| 20 29 3b 0d 7d 0d 0d 0d | 0d 2d 20 2d 2d 2d 2d 2d | );.}...|.- -----|
|000024e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000024f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002500| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002510| 2d 2d 2d 2d 2d 0d 53 65 | 74 75 70 20 66 6f 72 20 |-----.Se|tup for |
|00002520| 53 65 70 61 72 61 74 65 | 6c 79 20 43 6f 6d 70 69 |Separate|ly Compi|
|00002530| 6c 65 64 20 43 6f 64 65 | 20 52 65 73 6f 75 72 63 |led Code| Resourc|
|00002540| 65 73 0d 0d 0d 49 6e 20 | 74 68 65 20 22 53 65 74 |es...In |the "Set|
|00002550| 20 50 72 6f 6a 65 63 74 | 20 54 79 70 65 2e 2e 2e | Project| Type...|
|00002560| 22 20 64 69 61 6c 6f 67 | 2c 20 74 79 70 65 20 22 |" dialog|, type "|
|00002570| 62 69 6c 6c 22 20 69 6e | 74 6f 20 0d 74 68 65 20 |bill" in|to .the |
|00002580| 63 6f 64 65 20 72 65 73 | 6f 75 72 63 65 20 74 79 |code res|ource ty|
|00002590| 70 65 2c 20 64 6f 20 4e | 4f 54 20 63 68 65 63 6b |pe, do N|OT check|
|000025a0| 20 63 75 73 74 6f 6d 20 | 68 65 61 64 65 72 2c 0d | custom |header,.|
|000025b0| 6d 61 6b 65 20 73 75 72 | 65 20 22 70 75 72 67 65 |make sur|e "purge|
|000025c0| 61 62 6c 65 22 20 69 73 | 20 63 68 65 63 6b 65 64 |able" is| checked|
|000025d0| 2c 20 61 6e 64 20 67 69 | 76 65 20 69 74 20 61 6e |, and gi|ve it an|
|000025e0| 79 20 6e 61 6d 65 0d 6f | 72 20 69 64 20 79 6f 75 |y name.o|r id you|
|000025f0| 20 6c 69 6b 65 2e 0d 0d | 54 68 65 20 49 44 20 63 | like...|The ID c|
|00002600| 61 6e 20 62 65 20 69 6d | 70 6f 72 74 61 6e 74 2e |an be im|portant.|
|00002610| 20 20 49 66 20 79 6f 75 | 20 63 68 65 63 6b 20 22 | If you| check "|
|00002620| 6d 75 6c 74 69 2d 73 65 | 67 6d 65 6e 74 22 20 63 |multi-se|gment" c|
|00002630| 6f 64 65 0d 72 65 73 6f | 75 72 63 65 2c 20 79 6f |ode.reso|urce, yo|
|00002640| 75 20 68 61 76 65 20 74 | 6f 20 62 65 20 73 75 72 |u have t|o be sur|
|00002650| 65 20 79 6f 75 72 20 63 | 6f 64 65 20 72 65 73 6f |e your c|ode reso|
|00002660| 75 72 63 65 27 73 20 69 | 64 0d 69 73 20 6c 65 73 |urce's i|d.is les|
|00002670| 73 20 74 68 61 74 20 36 | 34 2c 20 61 6e 64 20 69 |s that 6|4, and i|
|00002680| 74 20 64 6f 65 73 20 74 | 68 65 20 6e 75 6d 62 65 |t does t|he numbe|
|00002690| 72 69 6e 67 20 73 6f 20 | 74 68 61 74 20 74 68 65 |ring so |that the|
|000026a0| 0d 72 65 73 6f 75 72 63 | 65 20 6d 61 6e 61 67 65 |.resourc|e manage|
|000026b0| 72 20 63 61 6e 20 64 65 | 74 65 72 6d 69 6e 65 20 |r can de|termine |
|000026c0| 61 74 20 72 75 6e 74 69 | 6d 65 20 77 68 69 63 68 |at runti|me which|
|000026d0| 20 73 65 67 6d 65 6e 74 | 73 0d 62 65 6c 6f 6e 67 | segment|s.belong|
|000026e0| 20 74 6f 20 74 68 69 73 | 20 63 6f 64 65 20 72 65 | to this| code re|
|000026f0| 73 6f 75 72 63 65 2e 20 | 20 54 68 65 72 65 20 69 |source. | There i|
|00002700| 73 20 6e 6f 20 6f 74 68 | 65 72 20 22 63 6f 6e 74 |s no oth|er "cont|
|00002710| 65 63 74 22 0d 74 6f 20 | 77 6f 72 72 79 20 61 62 |ect".to |worry ab|
|00002720| 6f 75 74 20 6f 72 20 73 | 65 74 20 75 70 20 74 6f |out or s|et up to|
|00002730| 20 77 6f 72 72 79 20 61 | 62 6f 75 74 2e 0d 0d 54 | worry a|bout...T|
|00002740| 68 65 72 65 20 61 72 65 | 20 6f 74 68 65 72 20 72 |here are| other r|
|00002750| 65 73 6f 75 72 63 65 20 | 6e 75 6d 62 65 72 69 6e |esource |numberin|
|00002760| 67 20 72 75 6c 65 73 2c | 20 62 75 74 20 69 74 20 |g rules,| but it |
|00002770| 49 20 74 68 69 6e 6b 0d | 74 68 65 20 69 6d 70 6f |I think.|the impo|
|00002780| 72 74 61 6e 74 20 74 68 | 69 6e 67 20 69 73 20 74 |rtant th|ing is t|
|00002790| 6f 20 6e 6f 74 20 65 76 | 65 72 79 20 75 73 65 20 |o not ev|ery use |
|000027a0| 27 43 4f 44 45 27 2e 0d | 0d 0d 2d 20 2d 2d 2d 2d |'CODE'..|..- ----|
|000027b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000027c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000027d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000027e0| 2d 2d 2d 2d 2d 2d 0d 4f | 74 68 65 72 20 4e 6f 74 |------.O|ther Not|
|000027f0| 65 73 0d 0d 0d 54 68 69 | 6e 6b 20 43 20 70 72 6f |es...Thi|nk C pro|
|00002800| 76 69 64 65 73 20 61 20 | 6e 69 63 65 20 77 61 79 |vides a |nice way|
|00002810| 20 6f 66 20 64 65 61 6c | 69 6e 67 20 77 69 74 68 | of deal|ing with|
|00002820| 20 74 68 65 20 69 6e 74 | 65 72 66 61 63 65 20 0d | the int|erface .|
|00002830| 74 6f 20 63 6f 64 65 20 | 72 65 73 6f 75 72 63 65 |to code |resource|
|00002840| 73 2e 20 20 41 6c 6c 20 | 79 6f 75 27 6c 6c 20 68 |s. All |you'll h|
|00002850| 61 76 65 20 74 6f 20 64 | 6f 20 74 6f 20 74 68 65 |ave to d|o to the|
|00002860| 20 61 62 6f 76 65 20 69 | 73 0d 63 68 61 6e 67 65 | above i|s.change|
|00002870| 20 27 62 69 6c 6c 27 20 | 74 6f 20 77 68 61 74 65 | 'bill' |to whate|
|00002880| 76 65 72 20 79 6f 75 20 | 77 61 6e 74 2c 20 63 68 |ver you |want, ch|
|00002890| 61 6e 67 65 20 74 68 65 | 20 64 61 74 61 20 74 79 |ange the| data ty|
|000028a0| 70 65 0d 61 6e 64 20 6e | 75 6d 62 65 72 20 6f 66 |pe.and n|umber of|
|000028b0| 20 70 61 72 61 6d 65 74 | 65 72 73 20 79 6f 75 27 | paramet|ers you'|
|000028c0| 6c 6c 20 62 65 20 6e 65 | 65 64 69 6e 67 2c 20 61 |ll be ne|eding, a|
|000028d0| 6e 64 20 74 68 65 20 64 | 61 74 61 0d 74 79 70 65 |nd the d|ata.type|
|000028e0| 20 6f 66 20 74 68 65 20 | 72 65 74 75 72 6e 20 76 | of the |return v|
|000028f0| 61 6c 75 65 2c 20 28 20 | 6f 72 20 76 6f 69 64 20 |alue, ( |or void |
|00002900| 29 2e 20 20 54 68 61 74 | 27 73 20 69 74 21 0d 0d |). That|'s it!..|
|00002910| 49 6e 74 65 61 64 20 6f | 66 20 75 73 69 6e 67 20 |Intead o|f using |
|00002920| 44 65 74 61 63 68 52 65 | 73 6f 75 72 63 65 20 2f |DetachRe|source /|
|00002930| 20 44 69 73 70 6f 73 65 | 48 61 6e 64 6c 65 2c 20 | Dispose|Handle, |
|00002940| 79 6f 75 20 63 6f 75 6c | 64 20 0d 61 6c 73 6f 20 |you coul|d .also |
|00002950| 6a 75 73 74 20 52 65 6c | 65 61 73 65 52 65 73 6f |just Rel|easeReso|
|00002960| 75 72 63 65 20 69 74 20 | 77 68 65 6e 20 79 6f 75 |urce it |when you|
|00002970| 20 61 72 65 20 64 6f 6e | 65 20 77 69 74 68 20 69 | are don|e with i|
|00002980| 74 2c 0d 77 68 69 63 68 | 20 77 69 6c 6c 20 73 61 |t,.which| will sa|
|00002990| 76 65 20 6f 6e 20 64 69 | 73 6b 20 74 68 72 61 73 |ve on di|sk thras|
|000029a0| 68 69 6e 67 20 69 66 20 | 79 6f 75 20 77 69 6c 6c |hing if |you will|
|000029b0| 20 62 65 20 61 63 63 65 | 73 73 69 6e 67 0d 69 74 | be acce|ssing.it|
|000029c0| 20 61 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 69 6d | a numbe|r of tim|
|000029d0| 65 73 2e 0d 0d 41 6e 64 | 20 64 6f 6e 27 74 20 66 |es...And| don't f|
|000029e0| 6f 72 67 65 74 20 74 68 | 65 20 6b 65 79 77 6f 72 |orget th|e keywor|
|000029f0| 64 20 27 70 61 73 63 61 | 6c 27 20 69 6e 20 74 68 |d 'pasca|l' in th|
|00002a00| 65 20 74 79 70 65 64 65 | 66 21 20 20 59 6f 75 0d |e typede|f! You.|
|00002a10| 63 6f 75 6c 64 20 6c 6f | 6f 6b 20 61 74 20 79 6f |could lo|ok at yo|
|00002a20| 75 72 20 63 6f 64 65 20 | 61 6c 6c 20 64 61 79 20 |ur code |all day |
|00002a30| 6c 6f 6e 67 20 61 6e 64 | 20 6e 6f 74 20 63 61 74 |long and| not cat|
|00002a40| 63 68 20 74 68 61 74 20 | 6f 6e 65 21 0d 0d 3a 29 |ch that |one!..:)|
|00002a50| 20 3a 29 20 20 20 48 61 | 76 65 20 66 75 6e 2e 20 | :) Ha|ve fun. |
|00002a60| 20 0d 0d 0d 4d 61 72 6b | 20 48 61 6e 72 65 6b 0d | ...Mark| Hanrek.|
|00002a70| 54 68 65 20 49 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |The Info|rmation |
|00002a80| 57 6f 72 6b 73 68 6f 70 | 0d 0d 2b 2b 2b 2b 2b 2b |Workshop|..++++++|
|00002a90| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00002aa0| 2b 2b 2b 2b 2b 0d 0d 3e | 46 72 6f 6d 20 6f 73 74 |+++++..>|From ost|
|00002ab0| 65 72 40 6e 65 74 63 6f | 6d 2e 63 6f 6d 20 28 44 |er@netco|m.com (D|
|00002ac0| 61 76 69 64 20 50 68 69 | 6c 6c 69 70 20 4f 73 74 |avid Phi|llip Ost|
|00002ad0| 65 72 29 0d 44 61 74 65 | 3a 20 4d 6f 6e 2c 20 32 |er).Date|: Mon, 2|
|00002ae0| 30 20 4a 75 6e 20 31 39 | 39 34 20 31 35 3a 35 32 |0 Jun 19|94 15:52|
|00002af0| 3a 35 39 20 47 4d 54 0d | 4f 72 67 61 6e 69 7a 61 |:59 GMT.|Organiza|
|00002b00| 74 69 6f 6e 3a 20 4e 65 | 74 63 6f 6d 20 4f 6e 6c |tion: Ne|tcom Onl|
|00002b10| 69 6e 65 20 43 6f 6d 6d | 75 6e 69 63 61 74 69 6f |ine Comm|unicatio|
|00002b20| 6e 73 20 53 65 72 76 69 | 63 65 73 20 28 34 30 38 |ns Servi|ces (408|
|00002b30| 2d 32 34 31 2d 39 37 36 | 30 20 6c 6f 67 69 6e 3a |-241-976|0 login:|
|00002b40| 20 67 75 65 73 74 29 0d | 0d 0d 4d 61 72 6b 20 48 | guest).|..Mark H|
|00002b50| 61 6e 72 65 6b 20 3c 68 | 61 6e 72 65 6b 40 63 74 |anrek <h|anrek@ct|
|00002b60| 73 2e 63 6f 6d 3e 20 70 | 6f 73 74 65 64 20 61 20 |s.com> p|osted a |
|00002b70| 63 6f 64 65 20 65 78 61 | 6d 70 6c 65 20 6f 66 20 |code exa|mple of |
|00002b80| 63 61 6c 6c 69 6e 67 20 | 61 20 63 6f 64 65 20 72 |calling |a code r|
|00002b90| 65 73 6f 75 72 63 65 2e | 0d 49 74 20 63 6f 6e 74 |esource.|.It cont|
|00002ba0| 61 69 6e 65 64 20 73 6f | 6d 65 20 65 72 72 6f 72 |ained so|me error|
|00002bb0| 73 3a 0d 31 2e 29 20 69 | 74 20 63 61 6c 6c 65 64 |s:.1.) i|t called|
|00002bc0| 20 44 65 74 61 63 68 52 | 65 73 6f 75 72 63 65 20 | DetachR|esource |
|00002bd0| 61 74 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |at the b|eginning|
|00002be0| 20 61 6e 64 20 44 69 73 | 70 6f 73 48 61 6e 64 6c | and Dis|posHandl|
|00002bf0| 65 20 61 74 20 74 68 65 | 20 65 6e 64 2e 0d 49 74 |e at the| end..It|
|00002c00| 20 69 73 20 6f 66 74 65 | 6e 20 62 65 74 74 65 72 | is ofte|n better|
|00002c10| 20 74 6f 20 6f 6d 69 74 | 20 74 68 65 73 65 20 74 | to omit| these t|
|00002c20| 77 6f 20 73 74 65 70 73 | 2c 20 61 6e 64 20 6a 75 |wo steps|, and ju|
|00002c30| 73 74 20 64 6f 20 61 20 | 48 47 65 74 53 74 61 74 |st do a |HGetStat|
|00002c40| 65 28 29 20 61 74 0d 74 | 68 65 20 62 65 67 69 6e |e() at.t|he begin|
|00002c50| 6e 69 6e 67 20 61 6e 64 | 20 61 6e 20 48 53 65 74 |ning and| an HSet|
|00002c60| 53 74 61 74 65 28 29 20 | 61 74 20 74 68 65 20 65 |State() |at the e|
|00002c70| 6e 64 2e 0d 0d 32 2e 29 | 20 49 74 20 61 73 73 75 |nd...2.)| It assu|
|00002c80| 6d 65 73 20 74 68 61 74 | 20 62 6f 74 68 20 74 68 |mes that| both th|
|00002c90| 65 20 63 61 6c 6c 69 6e | 67 20 43 20 70 72 6f 67 |e callin|g C prog|
|00002ca0| 72 61 6d 20 61 6e 64 20 | 74 68 65 20 63 6f 64 65 |ram and |the code|
|00002cb0| 20 72 65 73 6f 75 72 63 | 65 20 61 72 65 0d 65 69 | resourc|e are.ei|
|00002cc0| 74 68 65 72 20 62 6f 74 | 68 20 36 38 30 78 30 20 |ther bot|h 680x0 |
|00002cd0| 63 6f 64 65 20 6f 72 20 | 62 6f 74 68 20 50 6f 77 |code or |both Pow|
|00002ce0| 65 72 50 43 20 63 6f 64 | 65 2e 20 49 66 20 74 68 |erPC cod|e. If th|
|00002cf0| 65 72 65 20 69 73 20 61 | 20 63 68 61 6e 63 65 20 |ere is a| chance |
|00002d00| 74 68 61 74 20 74 68 65 | 79 0d 6d 69 67 68 74 20 |that the|y.might |
|00002d10| 62 65 20 6d 69 78 65 64 | 2c 20 79 6f 75 20 6e 65 |be mixed|, you ne|
|00002d20| 65 64 20 74 6f 20 63 61 | 6c 6c 20 74 68 65 20 63 |ed to ca|ll the c|
|00002d30| 6f 64 65 20 72 65 73 6f | 75 72 63 65 20 73 6c 69 |ode reso|urce sli|
|00002d40| 67 68 74 6c 79 20 64 69 | 66 66 65 72 65 6e 74 6c |ghtly di|fferentl|
|00002d50| 79 2e 0d 54 68 69 73 20 | 69 73 20 66 75 6c 6c 79 |y..This |is fully|
|00002d60| 20 64 6f 63 75 6d 65 6e | 74 65 64 20 69 6e 20 74 | documen|ted in t|
|00002d70| 68 65 20 50 6f 77 65 72 | 50 43 20 76 6f 6c 75 6d |he Power|PC volum|
|00002d80| 65 20 6f 66 20 49 6e 73 | 69 64 65 4d 61 63 2e 20 |e of Ins|ideMac. |
|00002d90| 59 6f 75 20 61 6c 73 6f | 20 6d 69 67 68 74 0d 77 |You also| might.w|
|00002da0| 61 6e 74 20 74 6f 20 63 | 6f 6e 73 69 64 65 72 20 |ant to c|onsider |
|00002db0| 63 72 65 61 74 69 6e 67 | 20 61 20 22 66 61 74 22 |creating| a "fat"|
|00002dc0| 20 63 6f 64 65 20 72 65 | 73 6f 75 72 63 65 2c 20 | code re|source, |
|00002dd0| 63 68 69 63 68 20 63 6f | 6e 74 61 69 6e 73 20 62 |chich co|ntains b|
|00002de0| 6f 74 68 20 36 38 30 78 | 30 0d 61 6e 64 20 50 6f |oth 680x|0.and Po|
|00002df0| 77 65 72 50 43 20 69 6e | 73 74 72 75 63 74 69 6f |werPC in|structio|
|00002e00| 6e 73 20 73 6f 20 69 74 | 20 69 74 20 77 69 6c 6c |ns so it| it will|
|00002e10| 20 72 75 6e 20 61 74 20 | 74 6f 70 20 73 70 65 65 | run at |top spee|
|00002e20| 64 20 6e 6f 20 6d 61 74 | 74 65 72 20 77 68 6f 20 |d no mat|ter who |
|00002e30| 63 61 6c 6c 73 0d 0d 2b | 2b 2b 2b 2b 2b 2b 2b 2b |calls..+|++++++++|
|00002e40| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00002e50| 2b 2b 0d 0d 3e 46 72 6f | 6d 20 4b 65 76 69 6e 2e |++..>Fro|m Kevin.|
|00002e60| 52 2e 42 6f 79 63 65 40 | 67 73 66 63 2e 6e 61 73 |R.Boyce@|gsfc.nas|
|00002e70| 61 2e 67 6f 76 20 28 4b | 65 76 69 6e 20 52 2e 20 |a.gov (K|evin R. |
|00002e80| 42 6f 79 63 65 29 0d 44 | 61 74 65 3a 20 4d 6f 6e |Boyce).D|ate: Mon|
|00002e90| 2c 20 32 30 20 4a 75 6e | 20 31 39 39 34 20 31 32 |, 20 Jun| 1994 12|
|00002ea0| 3a 33 38 3a 34 37 20 2d | 30 34 30 30 0d 4f 72 67 |:38:47 -|0400.Org|
|00002eb0| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 4e 41 53 41 2f |anizatio|n: NASA/|
|00002ec0| 47 53 46 43 0d 0d 4d 61 | 72 6b 20 48 61 6e 72 65 |GSFC..Ma|rk Hanre|
|00002ed0| 6b 20 3c 68 61 6e 72 65 | 6b 40 63 74 73 2e 63 6f |k <hanre|k@cts.co|
|00002ee0| 6d 3e 20 77 72 6f 74 65 | 3a 0d 0d 3e 20 49 6e 20 |m> wrote|:..> In |
|00002ef0| 61 72 74 69 63 6c 65 20 | 3c 32 75 30 36 36 66 24 |article |<2u066f$|
|00002f00| 61 76 6c 40 6d 61 69 6c | 68 6f 73 74 2e 69 6e 74 |avl@mail|host.int|
|00002f10| 65 72 61 63 63 65 73 73 | 2e 63 6f 6d 3e 20 42 69 |eraccess|.com> Bi|
|00002f20| 6c 6c 20 4d 63 43 6c 6f | 73 6b 65 79 2c 0d 3e 20 |ll McClo|skey,.> |
|00002f30| 62 69 6c 6c 6d 40 69 6e | 74 65 72 61 63 63 65 73 |billm@in|teracces|
|00002f40| 73 2e 63 6f 6d 20 77 72 | 69 74 65 73 3a 0d 3e 20 |s.com wr|ites:.> |
|00002f50| 0d 3e 20 3e 20 49 66 20 | 49 20 77 61 73 20 67 6f |.> > If |I was go|
|00002f60| 69 6e 67 20 74 6f 20 77 | 72 69 74 65 20 61 20 27 |ing to w|rite a '|
|00002f70| 43 4f 44 45 27 20 72 65 | 73 6f 75 72 63 65 20 69 |CODE' re|source i|
|00002f80| 6e 20 54 68 69 6e 6b 20 | 43 2c 20 68 6f 77 20 63 |n Think |C, how c|
|00002f90| 6f 75 6c 64 20 49 0d 3e | 20 3e 20 65 78 65 63 75 |ould I.>| > execu|
|00002fa0| 74 65 20 69 74 20 69 6e | 20 6d 79 20 70 72 6f 67 |te it in| my prog|
|00002fb0| 72 61 6d 3f 20 41 6c 73 | 6f 2c 20 61 72 65 20 74 |ram? Als|o, are t|
|00002fc0| 68 65 72 65 20 61 6e 79 | 20 65 78 61 6d 70 6c 65 |here any| example|
|00002fd0| 73 20 66 6f 72 20 74 68 | 69 73 0d 3e 20 3e 20 61 |s for th|is.> > a|
|00002fe0| 6e 79 77 68 65 72 65 3f | 0d 3e 20 0d 3e 20 59 6f |nywhere?|.> .> Yo|
|00002ff0| 75 20 77 6f 75 6c 64 20 | 63 65 72 74 61 69 6e 6c |u would |certainl|
|00003000| 79 20 77 61 6e 74 20 74 | 6f 20 63 6f 70 79 20 74 |y want t|o copy t|
|00003010| 68 65 20 77 61 79 20 69 | 74 20 69 73 20 64 6f 6e |he way i|t is don|
|00003020| 65 20 69 6e 20 73 6f 6d | 65 20 65 78 61 6d 70 6c |e in som|e exampl|
|00003030| 65 0d 3e 20 73 6f 75 72 | 63 65 20 63 6f 64 65 2e |e.> sour|ce code.|
|00003040| 20 20 49 20 70 72 65 70 | 61 72 65 64 20 61 6e 20 | I prep|ared an |
|00003050| 61 6e 73 65 77 72 20 74 | 6f 20 61 20 71 75 65 73 |ansewr t|o a ques|
|00003060| 74 69 6f 6e 20 6c 69 6b | 65 20 79 6f 75 72 73 20 |tion lik|e yours |
|00003070| 62 65 66 6f 72 65 2c 20 | 73 6f 0d 3e 20 49 27 76 |before, |so.> I'v|
|00003080| 65 20 61 74 74 61 63 68 | 65 64 20 69 74 20 62 65 |e attach|ed it be|
|00003090| 6c 6f 77 2e 20 20 49 74 | 20 69 73 20 72 65 61 64 |low. It| is read|
|000030a0| 79 20 74 6f 20 62 65 20 | 70 61 73 74 65 64 20 69 |y to be |pasted i|
|000030b0| 6e 20 61 6e 64 20 63 6f | 6d 70 69 6c 65 64 2e 0d |n and co|mpiled..|
|000030c0| 0d 5b 53 61 6d 70 6c 65 | 20 63 6f 64 65 20 74 68 |.[Sample| code th|
|000030d0| 61 74 20 69 73 20 61 6c | 6d 6f 73 74 20 69 64 65 |at is al|most ide|
|000030e0| 6e 74 69 63 61 6c 20 74 | 6f 20 6d 79 20 6f 77 6e |ntical t|o my own|
|000030f0| 20 73 74 6f 63 6b 20 61 | 6e 73 77 65 72 20 64 65 | stock a|nswer de|
|00003100| 6c 65 74 65 64 2e 5d 0d | 0d 54 68 65 72 65 20 69 |leted.].|.There i|
|00003110| 73 20 6f 6e 65 20 6f 74 | 68 65 72 20 74 68 69 6e |s one ot|her thin|
|00003120| 67 20 79 6f 75 20 6e 65 | 65 64 20 74 6f 20 62 65 |g you ne|ed to be|
|00003130| 20 61 77 61 72 65 20 6f | 66 2c 20 69 66 20 79 6f | aware o|f, if yo|
|00003140| 75 20 61 72 65 20 75 73 | 69 6e 67 20 61 6e 79 0d |u are us|ing any.|
|00003150| 73 79 73 74 65 6d 20 63 | 61 6c 6c 62 61 63 6b 73 |system c|allbacks|
|00003160| 20 69 6e 20 79 6f 75 72 | 20 63 6f 64 65 20 72 65 | in your| code re|
|00003170| 73 6f 75 72 63 65 2e 20 | 20 28 53 79 73 74 65 6d |source. | (System|
|00003180| 20 63 61 6c 6c 62 61 63 | 6b 73 20 61 72 65 20 74 | callbac|ks are t|
|00003190| 68 69 6e 67 73 20 6c 69 | 6b 65 0d 64 69 61 6c 6f |hings li|ke.dialo|
|000031a0| 67 20 66 69 6c 74 65 72 | 73 2c 20 74 68 61 74 20 |g filter|s, that |
|000031b0| 67 65 74 20 63 61 6c 6c | 65 64 20 66 72 6f 6d 20 |get call|ed from |
|000031c0| 77 69 74 68 69 6e 20 61 | 6e 20 4f 53 2f 54 6f 6f |within a|n OS/Too|
|000031d0| 6c 62 6f 78 20 72 6f 75 | 74 69 6e 65 20 74 68 61 |lbox rou|tine tha|
|000031e0| 74 20 79 6f 75 0d 63 61 | 6c 6c 2e 29 20 20 54 68 |t you.ca|ll.) Th|
|000031f0| 65 20 70 72 6f 62 6c 65 | 6d 20 69 73 20 74 68 61 |e proble|m is tha|
|00003200| 74 20 74 68 65 20 73 79 | 73 74 65 6d 20 6d 61 79 |t the sy|stem may|
|00003210| 20 68 61 76 65 20 6d 65 | 73 73 65 64 20 77 69 74 | have me|ssed wit|
|00003220| 68 20 41 34 20 62 65 66 | 6f 72 65 0d 63 61 6c 6c |h A4 bef|ore.call|
|00003230| 69 6e 67 20 79 6f 75 72 | 20 63 61 6c 6c 62 61 63 |ing your| callbac|
|00003240| 6b 20 72 6f 75 74 69 6e | 65 2c 20 73 6f 20 79 6f |k routin|e, so yo|
|00003250| 75 20 68 61 76 65 20 74 | 6f 20 73 65 74 20 69 74 |u have t|o set it|
|00003260| 20 75 70 20 77 69 74 68 | 69 6e 20 74 68 65 0d 63 | up with|in the.c|
|00003270| 61 6c 6c 62 61 63 6b 2e | 20 20 0d 0d 48 65 72 65 |allback.| ..Here|
|00003280| 20 69 73 20 74 68 65 20 | 73 65 63 6f 6e 64 20 68 | is the |second h|
|00003290| 61 6c 66 20 6f 66 20 6d | 79 20 73 74 6f 63 6b 20 |alf of m|y stock |
|000032a0| 61 6e 73 77 65 72 2c 20 | 77 68 65 72 65 20 49 20 |answer, |where I |
|000032b0| 64 69 73 63 75 73 73 20 | 74 68 69 73 20 69 6e 20 |discuss |this in |
|000032c0| 64 65 74 61 69 6c 3a 0d | 0d 41 6e 64 20 6f 6e 65 |detail:.|.And one|
|000032d0| 20 66 69 6e 61 6c 20 28 | 76 65 72 79 20 69 6d 70 | final (|very imp|
|000032e0| 6f 72 74 61 6e 74 29 20 | 70 6f 69 6e 74 20 69 73 |ortant) |point is|
|000032f0| 20 74 68 61 74 20 74 68 | 65 20 41 34 20 72 6f 75 | that th|e A4 rou|
|00003300| 74 69 6e 65 73 20 61 72 | 65 20 73 74 61 74 69 63 |tines ar|e static|
|00003310| 0d 28 74 68 65 79 20 6f | 6e 6c 79 20 61 70 70 6c |.(they o|nly appl|
|00003320| 79 20 74 6f 20 74 68 65 | 20 66 69 6c 65 20 69 6e |y to the| file in|
|00003330| 20 77 68 69 63 68 20 74 | 68 65 79 20 61 70 70 65 | which t|hey appe|
|00003340| 61 72 29 2e 20 20 53 6f | 20 69 66 20 79 6f 75 20 |ar). So| if you |
|00003350| 6e 65 65 64 20 74 6f 0d | 75 73 65 20 53 65 74 55 |need to.|use SetU|
|00003360| 70 41 34 28 29 20 69 6e | 20 61 20 66 69 6c 65 20 |pA4() in| a file |
|00003370| 6f 74 68 65 72 20 74 68 | 61 6e 20 74 68 65 20 6f |other th|an the o|
|00003380| 6e 65 20 77 68 69 63 68 | 20 63 61 6c 6c 65 64 20 |ne which| called |
|00003390| 52 65 6d 65 6d 62 65 72 | 41 30 28 29 2c 0d 79 6f |Remember|A0(),.yo|
|000033a0| 75 20 6e 65 65 64 20 74 | 6f 20 63 61 6c 6c 20 52 |u need t|o call R|
|000033b0| 65 6d 65 6d 62 65 72 41 | 34 28 29 20 28 4e 4f 54 |ememberA|4() (NOT|
|000033c0| 20 52 65 6d 65 6d 62 65 | 72 41 30 28 29 29 20 66 | Remembe|rA0()) f|
|000033d0| 72 6f 6d 20 77 69 74 68 | 69 6e 20 74 68 61 74 20 |rom with|in that |
|000033e0| 66 69 6c 65 2c 0d 73 6f | 6d 65 74 69 6d 65 20 62 |file,.so|metime b|
|000033f0| 65 66 6f 72 65 20 74 68 | 65 20 63 61 6c 6c 20 74 |efore th|e call t|
|00003400| 6f 20 53 65 74 55 70 41 | 34 28 29 2e 20 20 55 68 |o SetUpA|4(). Uh|
|00003410| 2c 20 6d 61 79 62 65 20 | 61 6e 20 65 78 61 6d 70 |, maybe |an examp|
|00003420| 6c 65 20 77 6f 75 6c 64 | 0d 68 65 6c 70 20 28 74 |le would|.help (t|
|00003430| 68 69 73 20 61 6c 73 6f | 20 64 65 6d 6f 6e 73 74 |his also| demonst|
|00003440| 72 61 74 65 73 20 68 6f | 77 20 74 6f 20 72 65 74 |rates ho|w to ret|
|00003450| 75 72 6e 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |urn the |value of|
|00003460| 20 61 20 67 6c 6f 62 61 | 6c 29 2e 2e 2e 0d 0d 2d | a globa|l).....-|
|00003470| 20 2d 20 66 69 6c 65 20 | 4d 61 69 6e 43 6f 64 65 | - file |MainCode|
|00003480| 2e 63 20 2d 2d 2d 0d 23 | 69 6e 63 6c 75 64 65 20 |.c ---.#|include |
|00003490| 3c 53 65 74 55 70 41 34 | 2e 68 3e 0d 63 68 61 72 |<SetUpA4|.h>.char|
|000034a0| 09 61 47 6c 6f 62 61 6c | 3b 0d 0d 63 68 61 72 20 |.aGlobal|;..char |
|000034b0| 6d 61 69 6e 28 6c 6f 6e | 67 20 66 6f 6f 29 09 09 |main(lon|g foo)..|
|000034c0| 2f 2a 20 57 61 6e 74 73 | 20 74 6f 20 72 65 74 75 |/* Wants| to retu|
|000034d0| 72 6e 20 76 61 6c 75 65 | 20 6f 66 20 61 47 6c 6f |rn value| of aGlo|
|000034e0| 62 61 6c 20 2a 2f 0d 7b | 0d 09 63 68 61 72 09 72 |bal */.{|..char.r|
|000034f0| 65 74 56 61 6c 3b 0d 09 | 0d 09 52 65 6d 65 6d 62 |etVal;..|..Rememb|
|00003500| 65 72 41 30 28 29 3b 0d | 09 53 65 74 55 70 41 34 |erA0();.|.SetUpA4|
|00003510| 28 29 3b 0d 09 2e 2e 2e | 0d 09 44 6f 53 6f 6d 65 |();.....|..DoSome|
|00003520| 44 69 61 6c 6f 67 28 29 | 3b 0d 09 2e 2e 2e 0d 09 |Dialog()|;.......|
|00003530| 72 65 74 56 61 6c 20 3d | 20 61 47 6c 6f 62 61 6c |retVal =| aGlobal|
|00003540| 3b 09 2f 2a 20 48 61 76 | 65 20 74 6f 20 64 6f 20 |;./* Hav|e to do |
|00003550| 74 68 69 73 20 77 68 69 | 6c 65 20 41 34 20 69 73 |this whi|le A4 is|
|00003560| 20 73 74 69 6c 6c 20 76 | 61 6c 69 64 21 20 2a 2f | still v|alid! */|
|00003570| 0d 09 52 65 73 74 6f 72 | 65 41 34 28 29 3b 09 09 |..Restor|eA4();..|
|00003580| 2f 2a 20 41 34 20 6e 6f | 20 6c 6f 6e 67 65 72 20 |/* A4 no| longer |
|00003590| 70 6f 69 6e 74 73 20 74 | 6f 20 6f 75 72 20 67 6c |points t|o our gl|
|000035a0| 6f 62 61 6c 20 61 72 65 | 61 20 2a 2f 0d 09 72 65 |obal are|a */..re|
|000035b0| 74 75 72 6e 20 72 65 74 | 56 61 6c 3b 09 09 2f 2a |turn ret|Val;../*|
|000035c0| 20 42 75 74 20 6c 6f 63 | 61 6c 20 28 61 75 74 6f | But loc|al (auto|
|000035d0| 6d 61 74 69 63 29 20 76 | 61 72 69 61 62 6c 65 73 |matic) v|ariables|
|000035e0| 20 61 72 65 20 73 74 69 | 6c 6c 20 6f 6b 20 2a 2f | are sti|ll ok */|
|000035f0| 0d 7d 0d 0d 0d 2d 20 2d | 20 66 69 6c 65 20 4d 79 |.}...- -| file My|
|00003600| 44 69 61 6c 6f 67 73 2e | 63 20 2d 2d 2d 0d 0d 23 |Dialogs.|c ---..#|
|00003610| 69 6e 63 6c 75 64 65 20 | 3c 53 65 74 55 70 41 34 |include |<SetUpA4|
|00003620| 2e 68 3e 0d 65 78 74 65 | 72 6e 20 73 68 6f 72 74 |.h>.exte|rn short|
|00003630| 09 61 47 6c 6f 62 61 6c | 3b 0d 0d 76 6f 69 64 20 |.aGlobal|;..void |
|00003640| 44 6f 53 6f 6d 65 44 69 | 61 6c 6f 67 28 29 0d 7b |DoSomeDi|alog().{|
|00003650| 0d 09 44 69 61 6c 6f 67 | 50 74 72 09 74 68 65 44 |..Dialog|Ptr.theD|
|00003660| 69 61 6c 6f 67 3b 0d 09 | 73 68 6f 72 74 09 09 69 |ialog;..|short..i|
|00003670| 74 65 6d 48 69 74 3b 0d | 09 0d 09 52 65 6d 65 6d |temHit;.|...Remem|
|00003680| 62 65 72 41 34 28 29 3b | 09 09 2f 2a 20 53 61 76 |berA4();|../* Sav|
|00003690| 65 20 41 34 20 66 6f 72 | 20 66 75 6e 63 74 69 6f |e A4 for| functio|
|000036a0| 6e 73 20 69 6e 20 74 68 | 69 73 20 66 69 6c 65 2e |ns in th|is file.|
|000036b0| 20 2a 2f 0d 09 74 68 65 | 44 69 61 6c 6f 67 20 3d | */..the|Dialog =|
|000036c0| 20 47 65 74 4e 65 77 44 | 69 61 6c 6f 67 28 20 64 | GetNewD|ialog( d|
|000036d0| 6c 67 52 73 72 63 49 44 | 2c 20 6e 69 6c 2c 20 28 |lgRsrcID|, nil, (|
|000036e0| 57 69 6e 64 6f 77 50 74 | 72 29 2d 31 20 29 3b 0d |WindowPt|r)-1 );.|
|000036f0| 09 4d 6f 64 61 6c 44 69 | 61 6c 6f 67 28 20 6d 79 |.ModalDi|alog( my|
|00003700| 46 69 6c 74 65 72 2c 20 | 26 69 74 65 6d 48 69 74 |Filter, |&itemHit|
|00003710| 20 29 3b 0d 09 2e 2e 2e | 0d 09 72 65 74 75 72 6e | );.....|..return|
|00003720| 3b 0d 7d 0d 0d 70 61 73 | 63 61 6c 20 42 6f 6f 6c |;.}..pas|cal Bool|
|00003730| 65 61 6e 20 4d 79 46 69 | 6c 74 65 72 28 44 69 61 |ean MyFi|lter(Dia|
|00003740| 6c 6f 67 50 74 72 20 74 | 68 65 44 6c 67 2c 20 45 |logPtr t|heDlg, E|
|00003750| 76 65 6e 74 52 65 63 6f | 72 64 20 2a 74 68 65 45 |ventReco|rd *theE|
|00003760| 76 65 6e 74 2c 20 73 68 | 6f 72 74 0d 2a 69 74 65 |vent, sh|ort.*ite|
|00003770| 6d 48 69 74 20 29 0d 7b | 0d 09 42 6f 6f 6c 65 61 |mHit ).{|..Boolea|
|00003780| 6e 09 73 74 61 74 75 73 | 3b 0d 09 0d 09 53 65 74 |n.status|;....Set|
|00003790| 55 70 41 34 28 29 3b 0d | 09 0d 09 69 66 20 28 20 |UpA4();.|...if ( |
|000037a0| 74 68 65 45 76 65 6e 74 | 2d 3e 77 68 61 74 20 3d |theEvent|->what =|
|000037b0| 3d 20 6b 65 79 44 6f 77 | 6e 20 29 20 7b 0d 09 09 |= keyDow|n ) {...|
|000037c0| 61 47 6c 6f 62 61 6c 20 | 3d 20 28 74 68 65 45 76 |aGlobal |= (theEv|
|000037d0| 65 6e 74 2d 3e 6d 65 73 | 73 61 67 65 29 20 26 20 |ent->mes|sage) & |
|000037e0| 63 68 61 72 43 6f 64 65 | 4d 61 73 6b 3b 0d 09 09 |charCode|Mask;...|
|000037f0| 2a 69 74 65 6d 48 69 74 | 20 3d 20 6f 6b 3b 0d 09 |*itemHit| = ok;..|
|00003800| 09 73 74 61 74 75 73 20 | 3d 20 54 52 55 45 3b 0d |.status |= TRUE;.|
|00003810| 09 7d 20 65 6c 73 65 20 | 7b 0d 09 09 73 74 61 74 |.} else |{...stat|
|00003820| 75 73 20 3d 20 46 41 4c | 53 45 3b 0d 09 7d 0d 09 |us = FAL|SE;..}..|
|00003830| 52 65 73 74 6f 72 65 41 | 34 28 29 3b 0d 09 72 65 |RestoreA|4();..re|
|00003840| 74 75 72 6e 20 73 74 61 | 74 75 73 3b 0d 7d 0d 0d |turn sta|tus;.}..|
|00003850| 0d 2d 2d 20 0d 4b 65 76 | 69 6e 20 20 20 20 20 20 |.-- .Kev|in |
|00003860| 4b 65 76 69 6e 2e 52 2e | 42 6f 79 63 65 40 67 73 |Kevin.R.|Boyce@gs|
|00003870| 66 63 2e 6e 61 73 61 2e | 67 6f 76 0d 49 20 74 68 |fc.nasa.|gov.I th|
|00003880| 65 6e 20 73 75 73 70 65 | 6e 64 65 64 20 74 68 65 |en suspe|nded the|
|00003890| 20 61 73 73 65 6d 62 6c | 79 20 62 79 20 74 68 65 | assembl|y by the|
|000038a0| 20 65 64 67 65 73 20 6f | 66 20 74 68 65 20 43 44 | edges o|f the CD|
|000038b0| 2c 20 61 6e 64 20 62 65 | 67 61 6e 20 66 69 6c 6c |, and be|gan fill|
|000038c0| 69 6e 67 0d 74 68 65 20 | 62 6f 78 20 77 69 74 68 |ing.the |box with|
|000038d0| 20 49 6e 73 69 64 65 20 | 4d 61 63 69 6e 74 6f 73 | Inside |Macintos|
|000038e0| 68 20 76 6f 6c 75 6d 65 | 73 2e 20 2d 2d 4b 65 76 |h volume|s. --Kev|
|000038f0| 69 6e 20 42 65 6c 6c 0d | 0d 2b 2b 2b 2b 2b 2b 2b |in Bell.|.+++++++|
|00003900| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00003910| 2b 2b 2b 2b 0d 0d 3e 46 | 72 6f 6d 20 4d 61 72 6b |++++..>F|rom Mark|
|00003920| 20 48 61 6e 72 65 6b 20 | 3c 68 61 6e 72 65 6b 40 | Hanrek |<hanrek@|
|00003930| 63 74 73 2e 63 6f 6d 3e | 0d 44 61 74 65 3a 20 54 |cts.com>|.Date: T|
|00003940| 75 65 2c 20 32 31 20 4a | 75 6e 20 31 39 39 34 20 |ue, 21 J|un 1994 |
|00003950| 30 38 3a 34 35 3a 35 35 | 20 47 4d 54 0d 4f 72 67 |08:45:55| GMT.Org|
|00003960| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 54 68 65 20 49 |anizatio|n: The I|
|00003970| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 57 6f 72 6b 73 |nformati|on Works|
|00003980| 68 6f 70 0d 0d 49 6e 20 | 61 72 74 69 63 6c 65 20 |hop..In |article |
|00003990| 3c 6f 73 74 65 72 43 72 | 70 44 47 43 2e 37 4b 34 |<osterCr|pDGC.7K4|
|000039a0| 40 6e 65 74 63 6f 6d 2e | 63 6f 6d 3e 20 44 61 76 |@netcom.|com> Dav|
|000039b0| 69 64 20 50 68 69 6c 6c | 69 70 20 4f 73 74 65 72 |id Phill|ip Oster|
|000039c0| 2c 0d 6f 73 74 65 72 40 | 6e 65 74 63 6f 6d 2e 63 |,.oster@|netcom.c|
|000039d0| 6f 6d 20 77 72 69 74 65 | 73 3a 0d 0d 3e 49 74 20 |om write|s:..>It |
|000039e0| 63 6f 6e 74 61 69 6e 65 | 64 20 73 6f 6d 65 20 65 |containe|d some e|
|000039f0| 72 72 6f 72 73 3a 0d 3e | 31 2e 29 20 69 74 20 63 |rrors:.>|1.) it c|
|00003a00| 61 6c 6c 65 64 20 44 65 | 74 61 63 68 52 65 73 6f |alled De|tachReso|
|00003a10| 75 72 63 65 20 61 74 20 | 74 68 65 20 62 65 67 69 |urce at |the begi|
|00003a20| 6e 6e 69 6e 67 20 61 6e | 64 20 44 69 73 70 6f 73 |nning an|d Dispos|
|00003a30| 48 61 6e 64 6c 65 20 61 | 74 20 74 68 65 0d 65 6e |Handle a|t the.en|
|00003a40| 64 2e 0d 3e 49 74 20 69 | 73 20 6f 66 74 65 6e 20 |d..>It i|s often |
|00003a50| 62 65 74 74 65 72 20 74 | 6f 20 6f 6d 69 74 20 74 |better t|o omit t|
|00003a60| 68 65 73 65 20 74 77 6f | 20 73 74 65 70 73 2c 20 |hese two| steps, |
|00003a70| 61 6e 64 20 6a 75 73 74 | 20 64 6f 20 61 20 48 47 |and just| do a HG|
|00003a80| 65 74 53 74 61 74 65 28 | 29 20 61 74 0d 3e 74 68 |etState(|) at.>th|
|00003a90| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 61 6e 64 20 |e beginn|ing and |
|00003aa0| 61 6e 20 48 53 65 74 53 | 74 61 74 65 28 29 20 61 |an HSetS|tate() a|
|00003ab0| 74 20 74 68 65 20 65 6e | 64 2e 0d 3e 0d 3e 32 2e |t the en|d..>.>2.|
|00003ac0| 29 20 49 74 20 61 73 73 | 75 6d 65 73 20 74 68 61 |) It ass|umes tha|
|00003ad0| 74 20 62 6f 74 68 20 74 | 68 65 20 63 61 6c 6c 69 |t both t|he calli|
|00003ae0| 6e 67 20 43 20 70 72 6f | 67 72 61 6d 20 61 6e 64 |ng C pro|gram and|
|00003af0| 20 74 68 65 20 63 6f 64 | 65 20 72 65 73 6f 75 72 | the cod|e resour|
|00003b00| 63 65 20 61 72 65 0d 3e | 65 69 74 68 65 72 20 62 |ce are.>|either b|
|00003b10| 6f 74 68 20 36 38 30 78 | 30 20 63 6f 64 65 20 6f |oth 680x|0 code o|
|00003b20| 72 20 62 6f 74 68 20 50 | 6f 77 65 72 50 43 20 63 |r both P|owerPC c|
|00003b30| 6f 64 65 2e 20 49 66 20 | 74 68 65 72 65 20 69 73 |ode. If |there is|
|00003b40| 20 61 20 63 68 61 6e 63 | 65 20 74 68 61 74 0d 74 | a chanc|e that.t|
|00003b50| 68 65 79 0d 3e 6d 69 67 | 68 74 20 62 65 20 6d 69 |hey.>mig|ht be mi|
|00003b60| 78 65 64 2c 20 79 6f 75 | 20 6e 65 65 64 20 74 6f |xed, you| need to|
|00003b70| 20 63 61 6c 6c 20 74 68 | 65 20 63 6f 64 65 20 72 | call th|e code r|
|00003b80| 65 73 6f 75 72 63 65 20 | 73 6c 69 67 68 74 6c 79 |esource |slightly|
|00003b90| 20 64 69 66 66 65 72 65 | 6e 74 6c 79 2e 0d 3e 54 | differe|ntly..>T|
|00003ba0| 68 69 73 20 69 73 20 66 | 75 6c 6c 79 20 64 6f 63 |his is f|ully doc|
|00003bb0| 75 6d 65 6e 74 65 64 20 | 69 6e 20 74 68 65 20 50 |umented |in the P|
|00003bc0| 6f 77 65 72 50 43 20 76 | 6f 6c 75 6d 65 20 6f 66 |owerPC v|olume of|
|00003bd0| 20 49 6e 73 69 64 65 4d | 61 63 2e 20 59 6f 75 20 | InsideM|ac. You |
|00003be0| 61 6c 73 6f 0d 6d 69 67 | 68 74 0d 3e 77 61 6e 74 |also.mig|ht.>want|
|00003bf0| 20 74 6f 20 63 6f 6e 73 | 69 64 65 72 20 63 72 65 | to cons|ider cre|
|00003c00| 61 74 69 6e 67 20 61 20 | 22 66 61 74 22 20 63 6f |ating a |"fat" co|
|00003c10| 64 65 20 72 65 73 6f 75 | 72 63 65 2c 20 63 68 69 |de resou|rce, chi|
|00003c20| 63 68 20 63 6f 6e 74 61 | 69 6e 73 20 62 6f 74 68 |ch conta|ins both|
|00003c30| 0d 36 38 30 78 30 0d 3e | 61 6e 64 20 50 6f 77 65 |.680x0.>|and Powe|
|00003c40| 72 50 43 20 69 6e 73 74 | 72 75 63 74 69 6f 6e 73 |rPC inst|ructions|
|00003c50| 20 73 6f 20 69 74 20 69 | 74 20 77 69 6c 6c 20 72 | so it i|t will r|
|00003c60| 75 6e 20 61 74 20 74 6f | 70 20 73 70 65 65 64 20 |un at to|p speed |
|00003c70| 6e 6f 20 6d 61 74 74 65 | 72 20 77 68 6f 0d 63 61 |no matte|r who.ca|
|00003c80| 6c 6c 73 0d 0d 44 61 76 | 69 64 2c 0d 0d 4e 65 69 |lls..Dav|id,..Nei|
|00003c90| 74 68 65 72 20 61 72 65 | 20 65 72 72 6f 72 73 2e |ther are| errors.|
|00003ca0| 20 20 45 72 72 6f 72 73 | 20 61 72 65 20 77 68 65 | Errors| are whe|
|00003cb0| 72 65 20 79 6f 75 20 64 | 6f 20 73 6f 6d 65 74 68 |re you d|o someth|
|00003cc0| 69 6e 67 20 77 72 6f 6e | 67 2e 0d 0d 54 68 65 20 |ing wron|g...The |
|00003cd0| 66 69 72 73 74 20 69 73 | 20 61 20 73 69 74 75 61 |first is| a situa|
|00003ce0| 74 69 6f 6e 61 6c 20 6b | 69 6e 64 20 6f 66 20 74 |tional k|ind of t|
|00003cf0| 68 69 6e 67 2e 0d 0d 41 | 73 20 66 6f 72 20 74 68 |hing...A|s for th|
|00003d00| 65 20 50 6f 77 65 72 50 | 43 20 63 6f 6e 63 65 72 |e PowerP|C concer|
|00003d10| 6e 73 2c 20 74 68 61 74 | 20 69 73 20 6e 6f 74 20 |ns, that| is not |
|00003d20| 61 70 70 72 6f 70 72 69 | 61 74 65 20 68 65 72 65 |appropri|ate here|
|00003d30| 2c 20 62 65 63 61 75 73 | 65 20 74 68 65 0d 42 69 |, becaus|e the.Bi|
|00003d40| 6c 6c 20 61 73 6b 65 64 | 20 68 6f 77 20 74 6f 20 |ll asked| how to |
|00003d50| 63 61 6c 6c 20 61 20 63 | 6f 64 65 20 72 65 73 6f |call a c|ode reso|
|00003d60| 75 72 63 65 2c 20 61 6e | 64 20 68 65 20 77 61 73 |urce, an|d he was|
|00003d70| 20 67 69 76 65 6e 20 6a | 75 73 74 20 77 68 61 74 | given j|ust what|
|00003d80| 20 68 65 0d 6e 65 65 64 | 73 20 74 6f 20 62 65 20 | he.need|s to be |
|00003d90| 73 75 63 63 65 73 73 66 | 75 6c 2e 0d 0d 54 68 65 |successf|ul...The|
|00003da0| 20 6f 62 6a 65 63 74 69 | 76 65 20 69 6e 20 61 6e | objecti|ve in an|
|00003db0| 73 77 65 72 69 6e 67 20 | 71 75 65 73 74 69 6f 6e |swering |question|
|00003dc0| 73 20 69 73 20 74 6f 20 | 68 6f 70 65 66 75 6c 6c |s is to |hopefull|
|00003dd0| 79 20 6d 61 6b 65 20 69 | 74 20 73 6f 20 74 68 65 |y make i|t so the|
|00003de0| 0d 61 6e 73 77 65 72 20 | 6d 61 6b 65 73 20 77 68 |.answer |makes wh|
|00003df0| 61 74 65 76 65 72 20 69 | 74 20 69 73 20 73 65 65 |atever i|t is see|
|00003e00| 6d 20 6c 69 6b 65 20 61 | 20 70 69 65 63 65 20 6f |m like a| piece o|
|00003e10| 66 20 63 61 6b 65 2e 0d | 0d 4d 79 20 44 65 74 61 |f cake..|.My Deta|
|00003e20| 63 68 52 65 73 6f 75 72 | 63 65 20 61 70 70 72 6f |chResour|ce appro|
|00003e30| 61 63 68 20 69 73 6f 6c | 61 74 65 73 20 68 69 6d |ach isol|ates him|
|00003e40| 20 66 72 6f 6d 20 52 65 | 73 6f 75 72 63 65 20 4d | from Re|source M|
|00003e50| 61 6e 61 67 65 72 20 63 | 6f 6e 63 65 72 6e 73 20 |anager c|oncerns |
|00003e60| 73 6f 0d 74 68 69 73 20 | 64 6f 65 73 20 6e 6f 74 |so.this |does not|
|00003e70| 20 66 6f 75 6c 20 75 70 | 20 68 69 73 20 66 69 72 | foul up| his fir|
|00003e80| 73 74 20 65 78 70 65 72 | 69 65 6e 63 65 73 2e 20 |st exper|iences. |
|00003e90| 20 4d 6f 76 69 6e 67 20 | 74 68 65 20 68 61 6e 64 | Moving |the hand|
|00003ea0| 6c 65 20 68 69 67 68 20 | 61 6c 73 6f 0d 65 6c 69 |le high |also.eli|
|00003eb0| 6d 69 6e 61 74 65 73 20 | 6d 65 6d 6f 72 79 20 66 |minates |memory f|
|00003ec0| 72 61 67 6d 65 6e 74 61 | 74 69 6f 6e 20 63 6f 6e |ragmenta|tion con|
|00003ed0| 63 65 72 6e 73 2e 20 42 | 79 20 61 6e 64 20 62 79 |cerns. B|y and by|
|00003ee0| 2c 20 68 65 20 77 69 6c | 6c 20 6b 6e 6f 77 20 61 |, he wil|l know a|
|00003ef0| 73 20 6d 75 63 68 0d 61 | 62 6f 75 74 20 69 74 20 |s much.a|bout it |
|00003f00| 61 73 20 79 6f 75 20 6f | 72 20 49 20 61 6e 64 20 |as you o|r I and |
|00003f10| 62 65 20 61 6e 73 77 65 | 72 69 6e 67 20 71 75 65 |be answe|ring que|
|00003f20| 73 74 69 6f 6e 73 20 68 | 69 6d 73 65 6c 66 2e 20 |stions h|imself. |
|00003f30| 3a 29 0d 0d 4e 6f 74 20 | 6f 6e 6c 79 20 74 68 61 |:)..Not |only tha|
|00003f40| 74 2c 20 69 66 20 68 65 | 20 77 61 6e 74 65 64 20 |t, if he| wanted |
|00003f50| 74 6f 20 74 61 6b 65 20 | 61 64 76 61 6e 74 61 67 |to take |advantag|
|00003f60| 65 20 6f 66 20 77 68 61 | 74 20 79 6f 75 20 6d 65 |e of wha|t you me|
|00003f70| 6e 74 69 6f 6e 65 64 2c | 20 68 6f 77 0d 77 6f 75 |ntioned,| how.wou|
|00003f80| 6c 64 20 68 65 20 64 6f | 20 74 68 61 74 3f 20 20 |ld he do| that? |
|00003f90| 41 6c 6c 20 79 6f 75 20 | 64 69 64 20 77 61 73 20 |All you |did was |
|00003fa0| 6d 65 6e 74 69 6f 6e 20 | 74 68 61 74 20 74 68 65 |mention |that the|
|00003fb0| 72 65 20 77 61 73 20 61 | 20 63 6f 6e 63 65 72 6e |re was a| concern|
|00003fc0| 2c 20 61 6e 64 0d 61 20 | 72 65 66 65 72 65 6e 63 |, and.a |referenc|
|00003fd0| 65 20 74 6f 20 48 47 65 | 74 53 74 61 74 65 2e 0d |e to HGe|tState..|
|00003fe0| 0d 4b 65 76 69 6e 20 6f | 6e 20 74 68 65 20 6f 74 |.Kevin o|n the ot|
|00003ff0| 68 65 72 20 68 61 6e 64 | 2c 20 72 61 74 68 65 72 |her hand|, rather|
|00004000| 20 74 68 61 6e 20 73 69 | 6d 70 6c 79 20 6d 65 6e | than si|mply men|
|00004010| 74 69 6f 6e 69 6e 67 20 | 74 68 61 74 20 74 68 65 |tioning |that the|
|00004020| 72 65 20 61 72 65 0d 63 | 6f 6e 63 65 72 6e 73 20 |re are.c|oncerns |
|00004030| 77 69 74 68 20 64 69 61 | 6c 6f 67 20 63 61 6c 6c |with dia|log call|
|00004040| 62 61 63 6b 73 2c 20 6c | 61 69 64 20 69 74 20 61 |backs, l|aid it a|
|00004050| 6c 6c 20 6f 75 74 20 69 | 6e 20 62 6c 61 63 6b 20 |ll out i|n black |
|00004060| 61 6e 64 20 77 68 69 74 | 65 2c 20 61 6e 64 0d 76 |and whit|e, and.v|
|00004070| 65 72 79 20 63 6c 65 61 | 72 6c 79 2e 20 20 41 20 |ery clea|rly. A |
|00004080| 70 69 65 63 65 20 6f 66 | 20 63 61 6b 65 2e 20 3a |piece of| cake. :|
|00004090| 29 0d 0d 0d 4d 61 72 6b | 20 48 61 6e 72 65 6b 0d |)...Mark| Hanrek.|
|000040a0| 0d 50 2e 53 2e 20 54 68 | 65 72 65 20 77 65 72 65 |.P.S. Th|ere were|
|000040b0| 2c 20 74 68 6f 75 67 68 | 2c 20 74 6f 6e 73 20 6f |, though|, tons o|
|000040c0| 66 20 65 64 69 74 69 6e | 67 20 65 72 72 6f 72 73 |f editin|g errors|
|000040d0| 20 69 6e 20 6d 79 20 70 | 6f 73 74 2e 20 53 6f 6d | in my p|ost. Som|
|000040e0| 65 74 68 69 6e 67 0d 6d | 75 73 74 20 68 61 76 65 |ething.m|ust have|
|000040f0| 20 67 6f 6e 65 20 77 72 | 6f 6e 67 20 77 69 74 68 | gone wr|ong with|
|00004100| 20 74 68 65 20 65 64 69 | 74 6f 72 2e 20 20 28 20 | the edi|tor. ( |
|00004110| 79 65 61 68 2c 20 72 69 | 67 68 74 20 3a 29 0d 0d |yeah, ri|ght :)..|
|00004120| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004130| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0d 3e 46 72 |--------|---..>Fr|
|00004140| 6f 6d 20 77 69 6c 6c 40 | 63 73 2e 73 75 2e 6f 7a |om will@|cs.su.oz|
|00004150| 2e 61 75 20 28 57 69 6c | 6c 69 61 6d 20 55 74 68 |.au (Wil|liam Uth|
|00004160| 65 72 29 0d 53 75 62 6a | 65 63 74 3a 20 43 6f 64 |er).Subj|ect: Cod|
|00004170| 65 20 52 65 73 6f 75 72 | 63 65 73 20 77 69 74 68 |e Resour|ces with|
|00004180| 20 43 6f 64 65 57 61 72 | 72 69 6f 72 0d 44 61 74 | CodeWar|rior.Dat|
|00004190| 65 3a 20 32 30 20 4a 75 | 6e 20 31 39 39 34 20 31 |e: 20 Ju|n 1994 1|
|000041a0| 36 3a 31 36 3a 32 34 20 | 2b 31 30 30 30 0d 4f 72 |6:16:24 |+1000.Or|
|000041b0| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 42 61 73 73 |ganizati|on: Bass|
|000041c0| 65 72 20 44 65 70 74 20 | 6f 66 20 43 6f 6d 70 75 |er Dept |of Compu|
|000041d0| 74 65 72 20 53 63 69 65 | 63 65 2c 20 55 6e 69 20 |ter Scie|ce, Uni |
|000041e0| 6f 66 20 53 79 64 6e 65 | 79 2c 20 41 75 73 74 72 |of Sydne|y, Austr|
|000041f0| 61 6c 69 61 0d 0d 48 69 | 2c 0d 20 20 49 27 76 65 |alia..Hi|,. I've|
|00004200| 20 6a 75 73 74 20 62 65 | 65 6e 20 74 72 79 69 6e | just be|en tryin|
|00004210| 67 20 74 6f 20 63 6f 76 | 65 72 74 20 61 20 54 48 |g to cov|ert a TH|
|00004220| 49 4e 4b 20 43 20 36 2e | 30 20 43 6f 64 65 20 52 |INK C 6.|0 Code R|
|00004230| 65 73 6f 75 72 63 65 20 | 74 6f 20 43 6f 64 65 57 |esource |to CodeW|
|00004240| 61 72 72 69 6f 72 2e 0d | 49 27 6d 20 75 73 69 6e |arrior..|I'm usin|
|00004250| 67 20 74 68 65 20 36 38 | 6b 20 44 52 33 2e 20 20 |g the 68|k DR3. |
|00004260| 49 27 76 65 20 73 65 74 | 20 74 68 65 20 70 72 65 |I've set| the pre|
|00004270| 66 73 20 75 70 20 74 6f | 20 70 72 6f 64 75 63 65 |fs up to| produce|
|00004280| 20 61 20 63 6f 64 65 20 | 72 65 73 6f 75 72 63 65 | a code |resource|
|00004290| 20 61 6e 64 0d 69 6e 63 | 6c 75 64 65 64 20 61 6c | and.inc|luded al|
|000042a0| 6c 20 74 68 65 20 66 69 | 6c 65 73 2e 0d 20 20 57 |l the fi|les.. W|
|000042b0| 68 65 6e 20 49 20 74 65 | 73 74 20 74 68 65 20 63 |hen I te|st the c|
|000042c0| 6f 64 65 20 72 65 73 6f | 75 72 63 65 20 69 74 20 |ode reso|urce it |
|000042d0| 64 6f 65 73 6e 27 74 20 | 77 6f 72 6b 2e 20 20 54 |doesn't |work. T|
|000042e0| 68 65 20 41 34 20 77 6f | 72 6c 64 20 69 73 20 73 |he A4 wo|rld is s|
|000042f0| 65 74 20 75 70 20 62 79 | 20 74 68 65 0d 70 72 6f |et up by| the.pro|
|00004300| 67 72 61 6d 20 63 61 6c | 6c 69 6e 67 20 74 68 65 |gram cal|ling the|
|00004310| 20 63 6f 64 65 20 72 65 | 73 6f 75 72 63 65 2e 20 | code re|source. |
|00004320| 20 41 6e 64 20 73 65 65 | 6d 73 20 74 6f 20 62 65 | And see|ms to be|
|00004330| 20 63 6f 72 72 65 63 74 | 2e 20 20 4f 6e 65 20 6f | correct|. One o|
|00004340| 66 20 74 68 65 20 66 69 | 72 73 74 0d 74 68 69 6e |f the fi|rst.thin|
|00004350| 67 73 20 74 68 65 20 63 | 6f 64 65 20 72 65 73 6f |gs the c|ode reso|
|00004360| 75 72 63 65 20 64 6f 65 | 73 20 69 73 20 63 61 6c |urce doe|s is cal|
|00004370| 6c 20 54 65 78 74 42 6f | 78 20 74 6f 20 64 69 73 |l TextBo|x to dis|
|00004380| 70 6c 61 79 20 61 20 64 | 65 62 75 67 20 73 74 72 |play a d|ebug str|
|00004390| 69 6e 67 2e 0d 54 68 65 | 20 63 61 6c 6c 20 69 73 |ing..The| call is|
|000043a0| 20 69 6e 20 74 68 65 20 | 61 73 73 65 6d 62 6c 65 | in the |assemble|
|000043b0| 72 20 2d 20 62 75 74 20 | 69 74 20 64 6f 65 73 6e |r - but |it doesn|
|000043c0| 27 74 20 63 6f 6d 65 20 | 75 70 2e 20 20 49 20 68 |'t come |up. I h|
|000043d0| 61 76 65 20 6e 6f 20 69 | 64 65 61 0d 77 6f 74 27 |ave no i|dea.wot'|
|000043e0| 73 20 77 72 6f 6e 67 2e | 20 20 54 68 65 72 65 20 |s wrong.| There |
|000043f0| 61 72 65 20 4e 4f 20 63 | 6f 6d 70 69 6c 65 20 6f |are NO c|ompile o|
|00004400| 72 20 6c 69 6e 6b 20 65 | 72 72 6f 72 73 2e 0d 0d |r link e|rrors...|
|00004410| 41 72 65 20 74 68 65 72 | 65 20 61 6e 79 20 62 75 |Are ther|e any bu|
|00004420| 67 73 20 69 6e 20 44 52 | 33 20 77 69 74 68 20 63 |gs in DR|3 with c|
|00004430| 6f 64 65 20 72 65 73 6f | 75 72 63 65 73 2c 20 6f |ode reso|urces, o|
|00004440| 72 20 69 73 20 74 68 65 | 72 65 20 73 6f 6d 65 20 |r is the|re some |
|00004450| 73 74 72 61 6e 67 65 20 | 74 68 69 6e 67 20 49 0d |strange |thing I.|
|00004460| 68 61 76 65 20 74 6f 20 | 73 65 74 20 2d 20 49 27 |have to |set - I'|
|00004470| 76 65 20 52 54 46 4d 27 | 64 20 62 75 74 20 74 68 |ve RTFM'|d but th|
|00004480| 65 72 65 20 72 65 61 6c | 6c 79 20 69 73 6e 27 74 |ere real|ly isn't|
|00004490| 20 6d 75 63 68 20 74 68 | 65 72 65 2e 0d 0d 5c 78 | much th|ere...\x|
|000044a0| 2f 69 6c 6c 20 20 20 20 | 20 20 20 20 20 20 20 20 |/ill | |
|000044b0| 3a 2d 7d 0d 0d 0d 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |:-}...++|++++++++|
|000044c0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|000044d0| 2b 0d 0d 3e 46 72 6f 6d | 20 72 61 6e 67 40 77 69 |+..>From| rang@wi|
|000044e0| 6e 74 65 72 6e 65 74 2e | 63 6f 6d 20 28 41 6e 74 |nternet.|com (Ant|
|000044f0| 6f 6e 20 52 61 6e 67 29 | 0d 44 61 74 65 3a 20 32 |on Rang)|.Date: 2|
|00004500| 30 20 4a 75 6e 20 31 39 | 39 34 20 31 32 3a 32 37 |0 Jun 19|94 12:27|
|00004510| 3a 34 39 20 47 4d 54 0d | 4f 72 67 61 6e 69 7a 61 |:49 GMT.|Organiza|
|00004520| 74 69 6f 6e 3a 20 4d 69 | 6e 6e 65 73 6f 74 61 20 |tion: Mi|nnesota |
|00004530| 41 6e 67 73 74 65 72 73 | 0d 0d 49 6e 20 61 72 74 |Angsters|..In art|
|00004540| 69 63 6c 65 20 3c 32 75 | 33 63 37 6f 24 36 73 68 |icle <2u|3c7o$6sh|
|00004550| 40 73 74 61 66 66 2e 63 | 73 2e 73 75 2e 6f 7a 2e |@staff.c|s.su.oz.|
|00004560| 61 75 3e 20 77 69 6c 6c | 40 63 73 2e 73 75 2e 6f |au> will|@cs.su.o|
|00004570| 7a 2e 61 75 20 28 57 69 | 6c 6c 69 61 6d 20 55 74 |z.au (Wi|lliam Ut|
|00004580| 68 65 72 29 20 77 72 69 | 74 65 73 3a 0d 3e 57 68 |her) wri|tes:.>Wh|
|00004590| 65 6e 20 49 20 74 65 73 | 74 20 74 68 65 20 63 6f |en I tes|t the co|
|000045a0| 64 65 20 72 65 73 6f 75 | 72 63 65 20 69 74 20 64 |de resou|rce it d|
|000045b0| 6f 65 73 6e 27 74 20 77 | 6f 72 6b 2e 20 20 54 68 |oesn't w|ork. Th|
|000045c0| 65 20 41 34 20 77 6f 72 | 6c 64 20 69 73 20 73 65 |e A4 wor|ld is se|
|000045d0| 74 0d 3e 75 70 20 62 79 | 20 74 68 65 20 70 72 6f |t.>up by| the pro|
|000045e0| 67 72 61 6d 20 63 61 6c | 6c 69 6e 67 20 74 68 65 |gram cal|ling the|
|000045f0| 20 63 6f 64 65 20 72 65 | 73 6f 75 72 63 65 2e 20 | code re|source. |
|00004600| 20 41 6e 64 20 73 65 65 | 6d 73 20 74 6f 20 62 65 | And see|ms to be|
|00004610| 0d 3e 63 6f 72 72 65 63 | 74 2e 0d 0d 20 20 59 6f |.>correc|t... Yo|
|00004620| 75 20 73 61 79 20 74 68 | 65 20 41 34 20 77 6f 72 |u say th|e A4 wor|
|00004630| 6c 64 20 69 73 20 73 65 | 74 20 75 70 20 62 79 20 |ld is se|t up by |
|00004640| 74 68 65 20 2a 63 61 6c | 6c 65 72 2a 3f 20 20 41 |the *cal|ler*? A|
|00004650| 72 65 20 79 6f 75 20 66 | 6f 6c 6c 6f 77 69 6e 67 |re you f|ollowing|
|00004660| 0d 74 68 65 20 43 6f 64 | 65 57 61 72 72 69 6f 72 |.the Cod|eWarrior|
|00004670| 20 72 75 6c 65 73 20 6f | 6e 20 74 68 69 73 3f 20 | rules o|n this? |
|00004680| 20 28 54 68 65 79 27 72 | 65 20 64 69 66 66 65 72 | (They'r|e differ|
|00004690| 65 6e 74 20 66 72 6f 6d | 20 54 48 49 4e 4b 2e 29 |ent from| THINK.)|
|000046a0| 20 20 49 6e 0d 54 48 49 | 4e 4b 20 43 2c 20 74 68 | In.THI|NK C, th|
|000046b0| 65 20 41 34 20 72 65 67 | 69 73 74 65 72 20 6e 65 |e A4 reg|ister ne|
|000046c0| 65 64 73 20 74 6f 20 70 | 6f 69 6e 74 20 74 6f 20 |eds to p|oint to |
|000046d0| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |the begi|nning of|
|000046e0| 20 74 68 65 20 63 6f 64 | 65 0d 72 65 73 6f 75 72 | the cod|e.resour|
|000046f0| 63 65 2e 20 20 49 20 64 | 6f 6e 27 74 20 72 65 63 |ce. I d|on't rec|
|00004700| 61 6c 6c 20 74 68 65 20 | 43 57 20 72 75 6c 65 73 |all the |CW rules|
|00004710| 20 66 6f 72 20 73 75 72 | 65 2c 20 62 75 74 20 69 | for sur|e, but i|
|00004720| 74 27 73 20 64 65 66 69 | 6e 69 74 65 6c 79 0d 64 |t's defi|nitely.d|
|00004730| 69 66 66 65 72 65 6e 74 | 2c 20 6d 6f 72 65 20 61 |ifferent|, more a|
|00004740| 6c 6f 6e 67 20 74 68 65 | 20 6c 69 6e 65 73 20 6f |long the| lines o|
|00004750| 66 20 27 41 34 20 3d 20 | 74 68 65 20 65 6e 64 20 |f 'A4 = |the end |
|00004760| 70 6c 75 73 20 24 38 30 | 30 30 27 2e 20 20 28 52 |plus $80|00'. (R|
|00004770| 75 6e 0d 6f 6e 65 20 6f | 66 20 74 68 65 20 65 78 |un.one o|f the ex|
|00004780| 61 6d 70 6c 65 73 20 74 | 68 61 74 20 75 73 65 73 |amples t|hat uses|
|00004790| 20 41 34 2c 20 6f 72 20 | 77 72 69 74 65 20 61 20 | A4, or |write a |
|000047a0| 71 75 69 63 6b 20 6f 6e | 65 2c 20 61 6e 64 20 70 |quick on|e, and p|
|000047b0| 6f 70 20 69 6e 74 6f 0d | 74 68 65 20 64 65 62 75 |op into.|the debu|
|000047c0| 67 67 65 72 20 74 6f 20 | 63 68 65 63 6b 20 66 6f |gger to |check fo|
|000047d0| 72 20 73 75 72 65 2e 29 | 0d 2d 2d 0d 41 6e 74 6f |r sure.)|.--.Anto|
|000047e0| 6e 20 52 61 6e 67 20 28 | 72 61 6e 67 40 77 69 6e |n Rang (|rang@win|
|000047f0| 74 65 72 6e 65 74 2e 63 | 6f 6d 29 0d 0d 2b 2b 2b |ternet.c|om)..+++|
|00004800| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00004810| 2b 2b 2b 2b 2b 2b 2b 2b | 0d 0d 3e 46 72 6f 6d 20 |++++++++|..>From |
|00004820| 77 69 6c 6c 40 63 73 2e | 73 75 2e 6f 7a 2e 61 75 |will@cs.|su.oz.au|
|00004830| 20 28 57 69 6c 6c 69 61 | 6d 20 55 74 68 65 72 29 | (Willia|m Uther)|
|00004840| 0d 44 61 74 65 3a 20 32 | 30 20 4a 75 6e 20 31 39 |.Date: 2|0 Jun 19|
|00004850| 39 34 20 32 32 3a 34 33 | 3a 32 31 20 2b 31 30 30 |94 22:43|:21 +100|
|00004860| 30 0d 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |0.Organi|zation: |
|00004870| 42 61 73 73 65 72 20 44 | 65 70 74 20 6f 66 20 43 |Basser D|ept of C|
|00004880| 6f 6d 70 75 74 65 72 20 | 53 63 69 65 63 65 2c 20 |omputer |Sciece, |
|00004890| 55 6e 69 20 6f 66 20 53 | 79 64 6e 65 79 2c 20 41 |Uni of S|ydney, A|
|000048a0| 75 73 74 72 61 6c 69 61 | 0d 0d 48 65 6c 6c 6f 20 |ustralia|..Hello |
|000048b0| 61 67 61 69 6e 2c 0d 20 | 20 46 69 78 65 64 20 74 |again,. | Fixed t|
|000048c0| 68 65 20 70 72 6f 62 6c | 65 6d 20 2d 20 49 20 77 |he probl|em - I w|
|000048d0| 61 73 20 61 73 73 75 6d | 69 6e 67 20 74 68 61 74 |as assum|ing that|
|000048e0| 20 43 57 20 75 73 65 64 | 20 61 20 73 69 6d 69 6c | CW used| a simil|
|000048f0| 61 72 20 41 34 20 77 6f | 72 6c 64 20 74 6f 20 54 |ar A4 wo|rld to T|
|00004900| 48 49 4e 4b 0d 61 6e 64 | 20 4d 50 57 20 2d 20 41 |HINK.and| MPW - A|
|00004910| 34 20 77 61 73 20 62 65 | 69 6e 67 20 73 65 74 20 |4 was be|ing set |
|00004920| 77 72 6f 6e 67 20 61 6e | 64 20 79 65 74 20 69 74 |wrong an|d yet it|
|00004930| 20 77 61 73 6e 27 74 20 | 63 72 61 73 68 69 6e 67 | wasn't |crashing|
|00004940| 2e 20 20 49 74 20 77 6f | 75 6c 64 20 62 65 20 6e |. It wo|uld be n|
|00004950| 69 63 65 0d 69 66 20 74 | 68 69 73 20 77 65 72 65 |ice.if t|his were|
|00004960| 20 6d 65 6e 74 69 6f 6e | 65 64 20 69 6e 20 74 68 | mention|ed in th|
|00004970| 65 20 6d 61 6e 75 61 6c | 73 20 28 49 20 65 76 65 |e manual|s (I eve|
|00004980| 6e 74 61 75 6c 6c 79 20 | 66 6f 75 6e 64 20 69 74 |ntaully |found it|
|00004990| 2c 20 77 65 6c 6c 20 64 | 6f 63 75 6d 65 6e 74 65 |, well d|ocumente|
|000049a0| 64 2c 0d 69 6e 20 61 20 | 63 6f 64 65 20 65 78 61 |d,.in a |code exa|
|000049b0| 6d 70 6c 65 29 2e 0d 0d | 5c 78 2f 69 6c 6c 20 20 |mple)...|\x/ill |
|000049c0| 20 20 20 20 20 3a 2d 7d | 0d 0d 50 2e 53 2e 20 20 | :-}|..P.S. |
|000049d0| 41 73 69 64 65 20 66 72 | 6f 6d 20 74 68 65 20 6f |Aside fr|om the o|
|000049e0| 64 64 20 63 6f 6e 76 65 | 72 73 69 6f 6e 20 70 72 |dd conve|rsion pr|
|000049f0| 6f 62 6c 65 6d 20 66 72 | 6f 6d 20 54 48 49 4e 4b |oblem fr|om THINK|
|00004a00| 20 43 2c 20 43 57 20 69 | 73 20 76 65 72 79 20 67 | C, CW i|s very g|
|00004a10| 6f 6f 64 20 2d 20 49 0d | 61 6d 20 69 6e 20 74 68 |ood - I.|am in th|
|00004a20| 65 20 70 72 6f 63 65 73 | 73 20 6f 66 20 63 6f 6e |e proces|s of con|
|00004a30| 76 65 72 74 69 6e 67 20 | 65 76 65 72 79 74 68 69 |verting |everythi|
|00004a40| 6e 67 2e 0d 0d 0d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ng....--|--------|
|00004a50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004a60| 2d 0d 0d 3e 46 72 6f 6d | 20 46 72 61 6e 6b 20 50 |-..>From| Frank P|
|00004a70| 72 69 63 65 20 3c 77 70 | 72 69 63 65 40 6e 65 74 |rice <wp|rice@net|
|00004a80| 63 6f 6d 2e 63 6f 6d 3e | 0d 53 75 62 6a 65 63 74 |com.com>|.Subject|
|00004a90| 3a 20 4d 61 63 54 43 50 | 20 44 4e 52 20 66 6f 72 |: MacTCP| DNR for|
|00004aa0| 20 50 6f 77 65 72 50 43 | 3f 0d 44 61 74 65 3a 20 | PowerPC|?.Date: |
|00004ab0| 54 75 65 2c 20 32 31 20 | 4a 75 6e 20 31 39 39 34 |Tue, 21 |Jun 1994|
|00004ac0| 20 30 33 3a 31 36 3a 32 | 38 20 47 4d 54 0d 4f 72 | 03:16:2|8 GMT.Or|
|00004ad0| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 4e 65 74 63 |ganizati|on: Netc|
|00004ae0| 6f 6d 0d 0d 49 20 6e 6f | 74 69 63 65 64 20 74 68 |om..I no|ticed th|
|00004af0| 61 74 20 74 68 65 20 44 | 4e 52 2e 63 20 66 69 6c |at the D|NR.c fil|
|00004b00| 65 20 6f 6e 20 74 68 65 | 20 43 6f 64 65 57 61 72 |e on the| CodeWar|
|00004b10| 72 69 6f 72 20 44 52 33 | 20 43 44 20 61 6e 64 20 |rior DR3| CD and |
|00004b20| 74 68 65 20 4d 61 63 4f | 6e 52 49 53 43 0d 72 65 |the MacO|nRISC.re|
|00004b30| 6c 65 61 73 65 20 43 44 | 20 69 73 20 62 61 73 69 |lease CD| is basi|
|00004b40| 63 61 6c 6c 79 20 62 6f | 67 75 73 20 77 68 65 6e |cally bo|gus when|
|00004b50| 20 69 74 20 61 63 74 75 | 61 6c 6c 79 20 67 65 74 | it actu|ally get|
|00004b60| 73 20 63 6f 6d 70 69 6c | 65 64 2e 20 20 49 74 20 |s compil|ed. It |
|00004b70| 69 73 20 66 61 72 0d 66 | 72 6f 6d 20 61 20 63 6f |is far.f|rom a co|
|00004b80| 6d 70 6c 65 74 65 20 63 | 6f 6e 76 65 72 73 69 6f |mplete c|onversio|
|00004b90| 6e 20 74 6f 20 6e 61 74 | 69 76 65 20 63 6f 64 65 |n to nat|ive code|
|00004ba0| 2e 2e 2e 61 74 20 6c 65 | 61 73 74 20 61 73 20 66 |...at le|ast as f|
|00004bb0| 61 72 20 61 73 0d 43 6f | 64 65 57 61 72 72 69 6f |ar as.Co|deWarrio|
|00004bc0| 72 20 69 73 20 63 6f 6e | 63 65 72 6e 65 64 2e 20 |r is con|cerned. |
|00004bd0| 20 41 66 74 65 72 20 6d | 61 6b 69 6e 67 20 6d 61 | After m|aking ma|
|00004be0| 6e 79 20 73 6d 61 6c 6c | 20 63 68 61 6e 67 65 73 |ny small| changes|
|00004bf0| 20 74 68 61 74 20 77 65 | 72 65 0d 6f 62 76 69 6f | that we|re.obvio|
|00004c00| 75 73 2c 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |us, the |function|
|00004c10| 73 20 73 74 69 6c 6c 20 | 22 64 6f 6e 27 74 20 6d |s still |"don't m|
|00004c20| 61 74 63 68 20 70 72 6f | 74 6f 74 79 70 65 73 2e |atch pro|totypes.|
|00004c30| 22 20 20 41 6e 79 77 61 | 79 2c 20 49 27 64 0d 72 |" Anywa|y, I'd.r|
|00004c40| 61 74 68 65 72 20 6e 6f | 74 20 6d 75 63 6b 20 77 |ather no|t muck w|
|00004c50| 69 74 68 20 74 68 69 73 | 20 66 69 6c 65 20 69 66 |ith this| file if|
|00004c60| 20 74 68 65 72 65 20 69 | 73 20 61 6e 20 6f 66 66 | there i|s an off|
|00004c70| 69 63 69 61 6c 20 6f 72 | 20 63 6f 72 72 65 63 74 |icial or| correct|
|00004c80| 6c 79 0d 75 70 64 61 74 | 65 64 20 76 65 72 73 69 |ly.updat|ed versi|
|00004c90| 6f 6e 20 6f 75 74 20 74 | 68 65 72 65 2e 20 20 41 |on out t|here. A|
|00004ca0| 6e 79 6f 6e 65 20 6b 6e | 6f 77 20 77 68 61 74 20 |nyone kn|ow what |
|00004cb0| 74 68 65 20 73 74 6f 72 | 79 20 69 73 20 6f 72 20 |the stor|y is or |
|00004cc0| 77 61 6e 74 20 74 6f 20 | 73 65 6e 64 0d 6d 65 20 |want to |send.me |
|00004cd0| 61 6e 20 75 70 64 61 74 | 65 64 20 66 69 6c 65 3f |an updat|ed file?|
|00004ce0| 0d 0d 54 68 61 6e 6b 73 | 21 0d 46 72 61 6e 6b 0d |..Thanks|!.Frank.|
|00004cf0| 0d 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |.+++++++|++++++++|
|00004d00| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 0d 0d 3e 46 |++++++++|++++..>F|
|00004d10| 72 6f 6d 20 73 63 6f 75 | 74 65 6e 40 6d 61 72 6f |rom scou|ten@maro|
|00004d20| 6f 6e 2e 74 63 2e 75 6d | 6e 2e 65 64 75 20 28 45 |on.tc.um|n.edu (E|
|00004d30| 72 69 63 20 53 63 6f 75 | 74 65 6e 29 0d 44 61 74 |ric Scou|ten).Dat|
|00004d40| 65 3a 20 54 75 65 2c 20 | 32 31 20 4a 75 6e 20 31 |e: Tue, |21 Jun 1|
|00004d50| 39 39 34 20 31 34 3a 32 | 39 3a 35 36 20 47 4d 54 |994 14:2|9:56 GMT|
|00004d60| 0d 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 55 |.Organiz|ation: U|
|00004d70| 6e 69 76 65 72 73 69 74 | 79 20 6f 66 20 4d 69 6e |niversit|y of Min|
|00004d80| 6e 65 73 6f 74 61 2c 20 | 53 74 75 64 65 6e 74 20 |nesota, |Student |
|00004d90| 41 66 66 61 69 72 73 0d | 0d 49 6e 20 61 72 74 69 |Affairs.|.In arti|
|00004da0| 63 6c 65 20 3c 6e 65 74 | 6e 65 77 73 43 72 71 39 |cle <net|newsCrq9|
|00004db0| 33 48 2e 4a 42 71 40 6e | 65 74 63 6f 6d 2e 63 6f |3H.JBq@n|etcom.co|
|00004dc0| 6d 3e 2c 20 46 72 61 6e | 6b 20 50 72 69 63 65 20 |m>, Fran|k Price |
|00004dd0| 3c 77 70 72 69 63 65 40 | 6e 65 74 63 6f 6d 2e 63 |<wprice@|netcom.c|
|00004de0| 6f 6d 3e 0d 77 72 6f 74 | 65 3a 0d 0d 3e 20 49 20 |om>.wrot|e:..> I |
|00004df0| 6e 6f 74 69 63 65 64 20 | 74 68 61 74 20 74 68 65 |noticed |that the|
|00004e00| 20 44 4e 52 2e 63 20 66 | 69 6c 65 20 6f 6e 20 74 | DNR.c f|ile on t|
|00004e10| 68 65 20 43 6f 64 65 57 | 61 72 72 69 6f 72 20 44 |he CodeW|arrior D|
|00004e20| 52 33 20 43 44 20 61 6e | 64 20 74 68 65 20 4d 61 |R3 CD an|d the Ma|
|00004e30| 63 4f 6e 52 49 53 43 0d | 3e 20 72 65 6c 65 61 73 |cOnRISC.|> releas|
|00004e40| 65 20 43 44 20 69 73 20 | 62 61 73 69 63 61 6c 6c |e CD is |basicall|
|00004e50| 79 20 62 6f 67 75 73 20 | 77 68 65 6e 20 69 74 20 |y bogus |when it |
|00004e60| 61 63 74 75 61 6c 6c 79 | 20 67 65 74 73 20 63 6f |actually| gets co|
|00004e70| 6d 70 69 6c 65 64 2e 20 | 20 49 74 20 69 73 20 66 |mpiled. | It is f|
|00004e80| 61 72 0d 3e 20 66 72 6f | 6d 20 61 20 63 6f 6d 70 |ar.> fro|m a comp|
|00004e90| 6c 65 74 65 20 63 6f 6e | 76 65 72 73 69 6f 6e 20 |lete con|version |
|00004ea0| 74 6f 20 6e 61 74 69 76 | 65 20 63 6f 64 65 2e 2e |to nativ|e code..|
|00004eb0| 2e 61 74 20 6c 65 61 73 | 74 20 61 73 20 66 61 72 |.at leas|t as far|
|00004ec0| 20 61 73 0d 3e 20 43 6f | 64 65 57 61 72 72 69 6f | as.> Co|deWarrio|
|00004ed0| 72 20 69 73 20 63 6f 6e | 63 65 72 6e 65 64 2e 20 |r is con|cerned. |
|00004ee0| 20 41 66 74 65 72 20 6d | 61 6b 69 6e 67 20 6d 61 | After m|aking ma|
|00004ef0| 6e 79 20 73 6d 61 6c 6c | 20 63 68 61 6e 67 65 73 |ny small| changes|
|00004f00| 20 74 68 61 74 20 77 65 | 72 65 0d 3e 20 6f 62 76 | that we|re.> obv|
|00004f10| 69 6f 75 73 2c 20 74 68 | 65 20 66 75 6e 63 74 69 |ious, th|e functi|
|00004f20| 6f 6e 73 20 73 74 69 6c | 6c 20 22 64 6f 6e 27 74 |ons stil|l "don't|
|00004f30| 20 6d 61 74 63 68 20 70 | 72 6f 74 6f 74 79 70 65 | match p|rototype|
|00004f40| 73 2e 22 20 20 41 6e 79 | 77 61 79 2c 20 49 27 64 |s." Any|way, I'd|
|00004f50| 0d 3e 20 72 61 74 68 65 | 72 20 6e 6f 74 20 6d 75 |.> rathe|r not mu|
|00004f60| 63 6b 20 77 69 74 68 20 | 74 68 69 73 20 66 69 6c |ck with |this fil|
|00004f70| 65 20 69 66 20 74 68 65 | 72 65 20 69 73 20 61 6e |e if the|re is an|
|00004f80| 20 6f 66 66 69 63 69 61 | 6c 20 6f 72 20 63 6f 72 | officia|l or cor|
|00004f90| 72 65 63 74 6c 79 0d 3e | 20 75 70 64 61 74 65 64 |rectly.>| updated|
|00004fa0| 20 76 65 72 73 69 6f 6e | 20 6f 75 74 20 74 68 65 | version| out the|
|00004fb0| 72 65 2e 20 20 41 6e 79 | 6f 6e 65 20 6b 6e 6f 77 |re. Any|one know|
|00004fc0| 20 77 68 61 74 20 74 68 | 65 20 73 74 6f 72 79 20 | what th|e story |
|00004fd0| 69 73 20 6f 72 20 77 61 | 6e 74 20 74 6f 20 73 65 |is or wa|nt to se|
|00004fe0| 6e 64 0d 3e 20 6d 65 20 | 61 6e 20 75 70 64 61 74 |nd.> me |an updat|
|00004ff0| 65 64 20 66 69 6c 65 3f | 0d 0d 53 6f 72 72 79 2e |ed file?|..Sorry.|
|00005000| 20 59 6f 75 27 6c 6c 20 | 68 61 76 65 20 74 6f 20 | You'll |have to |
|00005010| 72 65 77 72 69 74 65 20 | 44 4e 52 2e 63 2e 0d 0d |rewrite |DNR.c...|
|00005020| 41 70 70 6c 65 20 64 69 | 64 20 61 20 70 72 65 74 |Apple di|d a pret|
|00005030| 74 79 20 70 6f 6f 72 20 | 6a 6f 62 20 6f 66 20 63 |ty poor |job of c|
|00005040| 72 65 61 74 69 6e 67 20 | 61 20 75 6e 69 76 65 72 |reating |a univer|
|00005050| 73 61 6c 20 68 65 61 64 | 65 72 20 66 6f 72 20 74 |sal head|er for t|
|00005060| 68 69 73 20 66 69 6c 65 | 2e 0d 59 6f 75 20 77 69 |his file|..You wi|
|00005070| 6c 6c 20 68 61 76 65 20 | 74 6f 20 63 68 61 6e 67 |ll have |to chang|
|00005080| 65 20 61 6c 6c 20 6f 66 | 20 74 68 65 20 74 79 70 |e all of| the typ|
|00005090| 65 64 65 66 73 20 61 6e | 64 20 74 68 65 20 50 72 |edefs an|d the Pr|
|000050a0| 6f 63 49 6e 66 6f 20 64 | 65 66 69 6e 69 74 69 6f |ocInfo d|efinitio|
|000050b0| 6e 73 2e 0d 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ns..The |followin|
|000050c0| 67 20 69 73 20 61 6e 20 | 65 78 63 65 72 70 74 20 |g is an |excerpt |
|000050d0| 66 72 6f 6d 20 73 6f 6d | 65 20 6f 66 20 6d 79 20 |from som|e of my |
|000050e0| 6f 77 6e 20 54 43 50 20 | 63 6f 64 65 20 74 68 61 |own TCP |code tha|
|000050f0| 74 20 73 68 6f 77 73 20 | 74 68 65 0d 63 6f 72 72 |t shows |the.corr|
|00005100| 65 63 74 65 64 20 76 61 | 6c 75 65 73 2e 0d 0d 2d |ected va|lues...-|
|00005110| 20 2d 2d 2d 2d 2d 2d 2d | 0d 0d 2f 2f 20 4e 4f 54 | -------|..// NOT|
|00005120| 45 3a 20 54 68 65 20 64 | 6e 72 2e 63 20 66 69 6c |E: The d|nr.c fil|
|00005130| 65 20 63 72 65 61 74 65 | 64 20 66 6f 72 20 75 6e |e create|d for un|
|00005140| 69 76 65 72 73 61 6c 20 | 68 65 61 64 65 72 73 20 |iversal |headers |
|00005150| 63 6f 6e 74 61 69 6e 65 | 64 20 61 6e 20 65 72 72 |containe|d an err|
|00005160| 6f 72 2e 0d 41 6c 6c 0d | 2f 2f 20 6f 66 20 74 68 |or..All.|// of th|
|00005170| 65 20 73 65 6c 65 63 74 | 6f 72 73 20 61 72 65 20 |e select|ors are |
|00005180| 74 72 65 61 74 65 64 20 | 62 79 20 74 68 65 20 44 |treated |by the D|
|00005190| 4e 52 20 61 73 20 6c 6f | 6e 67 20 76 61 6c 75 65 |NR as lo|ng value|
|000051a0| 73 2c 20 6e 6f 74 20 73 | 68 6f 72 74 2e 20 54 68 |s, not s|hort. Th|
|000051b0| 69 73 0d 68 61 73 0d 2f | 2f 20 62 65 65 6e 20 63 |is.has./|/ been c|
|000051c0| 6f 72 72 65 63 74 65 64 | 20 69 6e 20 54 75 72 62 |orrected| in Turb|
|000051d0| 6f 54 43 50 2e 0d 0d 65 | 78 74 65 72 6e 20 22 43 |oTCP...e|xtern "C|
|000051e0| 22 20 7b 0d 0d 74 79 70 | 65 64 65 66 20 4f 53 45 |" {..typ|edef OSE|
|000051f0| 72 72 20 28 2a 4f 70 65 | 6e 52 65 73 6f 6c 76 65 |rr (*Ope|nResolve|
|00005200| 72 50 72 6f 63 50 74 72 | 29 28 6c 6f 6e 67 20 73 |rProcPtr|)(long s|
|00005210| 65 6c 65 63 74 6f 72 2c | 20 63 68 61 72 2a 20 66 |elector,| char* f|
|00005220| 69 6c 65 4e 61 6d 65 29 | 3b 0d 20 20 20 20 20 20 |ileName)|;. |
|00005230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2f 20 | | // |
|00005240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 5e | | ^|
|00005250| 5e 5e 5e 20 74 68 69 73 | 20 77 61 73 20 22 73 68 |^^^ this| was "sh|
|00005260| 6f 72 74 22 20 69 6e 20 | 64 6e 72 2e 63 0d 74 79 |ort" in |dnr.c.ty|
|00005270| 70 65 64 65 66 20 4f 53 | 45 72 72 20 28 2a 43 6c |pedef OS|Err (*Cl|
|00005280| 6f 73 65 52 65 73 6f 6c | 76 65 72 50 72 6f 63 50 |oseResol|verProcP|
|00005290| 74 72 29 28 6c 6f 6e 67 | 20 73 65 6c 65 63 74 6f |tr)(long| selecto|
|000052a0| 72 29 3b 0d 74 79 70 65 | 64 65 66 20 4f 53 45 72 |r);.type|def OSEr|
|000052b0| 72 20 28 2a 53 74 72 54 | 6f 41 64 64 72 50 72 6f |r (*StrT|oAddrPro|
|000052c0| 63 50 74 72 29 28 6c 6f | 6e 67 20 73 65 6c 65 63 |cPtr)(lo|ng selec|
|000052d0| 74 6f 72 2c 20 63 68 61 | 72 2a 20 68 6f 73 74 4e |tor, cha|r* hostN|
|000052e0| 61 6d 65 2c 0d 20 20 20 | 20 20 20 20 20 73 74 72 |ame,. | str|
|000052f0| 75 63 74 20 68 6f 73 74 | 49 6e 66 6f 2a 20 72 74 |uct host|Info* rt|
|00005300| 6e 53 74 72 75 63 74 2c | 20 6c 6f 6e 67 20 72 65 |nStruct,| long re|
|00005310| 73 75 6c 74 50 72 6f 63 | 2c 20 63 68 61 72 2a 20 |sultProc|, char* |
|00005320| 75 73 65 72 44 61 74 61 | 29 3b 0d 74 79 70 65 64 |userData|);.typed|
|00005330| 65 66 20 4f 53 45 72 72 | 20 28 2a 41 64 64 72 54 |ef OSErr| (*AddrT|
|00005340| 6f 53 74 72 50 72 6f 63 | 50 74 72 29 28 6c 6f 6e |oStrProc|Ptr)(lon|
|00005350| 67 20 73 65 6c 65 63 74 | 6f 72 2c 20 6c 6f 6e 67 |g select|or, long|
|00005360| 20 61 64 64 72 65 73 73 | 2c 20 63 68 61 72 2a 0d | address|, char*.|
|00005370| 68 6f 73 74 4e 61 6d 65 | 29 3b 0d 74 79 70 65 64 |hostName|);.typed|
|00005380| 65 66 20 4f 53 45 72 72 | 20 28 2a 41 64 64 72 54 |ef OSErr| (*AddrT|
|00005390| 6f 4e 61 6d 65 50 72 6f | 63 50 74 72 29 28 6c 6f |oNamePro|cPtr)(lo|
|000053a0| 6e 67 20 73 65 6c 65 63 | 74 6f 72 2c 20 75 6e 73 |ng selec|tor, uns|
|000053b0| 69 67 6e 65 64 20 6c 6f | 6e 67 20 61 64 64 72 2c |igned lo|ng addr,|
|000053c0| 0d 20 20 20 20 20 20 20 | 20 73 74 72 75 63 74 20 |. | struct |
|000053d0| 68 6f 73 74 49 6e 66 6f | 2a 20 72 74 6e 53 74 72 |hostInfo|* rtnStr|
|000053e0| 75 63 74 2c 20 6c 6f 6e | 67 20 72 65 73 75 6c 74 |uct, lon|g result|
|000053f0| 50 72 6f 63 2c 20 63 68 | 61 72 2a 20 75 73 65 72 |Proc, ch|ar* user|
|00005400| 44 61 74 61 29 3b 0d 74 | 79 70 65 64 65 66 20 4f |Data);.t|ypedef O|
|00005410| 53 45 72 72 20 28 2a 48 | 49 6e 66 6f 50 72 6f 63 |SErr (*H|InfoProc|
|00005420| 50 74 72 29 28 6c 6f 6e | 67 20 73 65 6c 65 63 74 |Ptr)(lon|g select|
|00005430| 6f 72 2c 20 63 68 61 72 | 2a 20 68 6f 73 74 4e 61 |or, char|* hostNa|
|00005440| 6d 65 2c 0d 20 20 20 20 | 20 20 20 20 73 74 72 75 |me,. | stru|
|00005450| 63 74 20 72 65 74 75 72 | 6e 52 65 63 2a 20 72 65 |ct retur|nRec* re|
|00005460| 74 75 72 6e 52 65 63 50 | 74 72 2c 20 6c 6f 6e 67 |turnRecP|tr, long|
|00005470| 20 72 65 73 75 6c 74 50 | 72 6f 63 2c 20 63 68 61 | resultP|roc, cha|
|00005480| 72 2a 20 75 73 65 72 44 | 61 74 61 29 3b 0d 74 79 |r* userD|ata);.ty|
|00005490| 70 65 64 65 66 20 4f 53 | 45 72 72 20 28 2a 4d 58 |pedef OS|Err (*MX|
|000054a0| 49 6e 66 6f 50 72 6f 63 | 50 74 72 29 28 6c 6f 6e |InfoProc|Ptr)(lon|
|000054b0| 67 20 73 65 6c 65 63 74 | 6f 72 2c 20 63 68 61 72 |g select|or, char|
|000054c0| 2a 20 68 6f 73 74 4e 61 | 6d 65 2c 0d 20 20 20 20 |* hostNa|me,. |
|000054d0| 20 20 20 20 73 74 72 75 | 63 74 20 72 65 74 75 72 | stru|ct retur|
|000054e0| 6e 52 65 63 2a 20 72 65 | 74 75 72 6e 52 65 63 50 |nRec* re|turnRecP|
|000054f0| 74 72 2c 20 6c 6f 6e 67 | 20 72 65 73 75 6c 74 50 |tr, long| resultP|
|00005500| 72 6f 63 2c 20 63 68 61 | 72 2a 20 75 73 65 72 44 |roc, cha|r* userD|
|00005510| 61 74 61 29 3b 0d 0d 7d | 3b 0d 0d 23 69 66 20 55 |ata);..}|;..#if U|
|00005520| 53 45 53 52 4f 55 54 49 | 4e 45 44 45 53 43 52 49 |SESROUTI|NEDESCRI|
|00005530| 50 54 4f 52 53 0d 0d 65 | 6e 75 6d 20 7b 0d 09 75 |PTORS..e|num {..u|
|00005540| 70 70 4f 70 65 6e 52 65 | 73 6f 6c 76 65 72 50 72 |ppOpenRe|solverPr|
|00005550| 6f 63 49 6e 66 6f 20 3d | 20 6b 43 53 74 61 63 6b |ocInfo =| kCStack|
|00005560| 42 61 73 65 64 0d 09 09 | 20 7c 20 52 45 53 55 4c |Based...| | RESUL|
|00005570| 54 5f 53 49 5a 45 28 53 | 49 5a 45 5f 43 4f 44 45 |T_SIZE(S|IZE_CODE|
|00005580| 28 73 69 7a 65 6f 66 28 | 73 68 6f 72 74 29 29 29 |(sizeof(|short)))|
|00005590| 0d 09 09 20 7c 20 53 54 | 41 43 4b 5f 52 4f 55 54 |... | ST|ACK_ROUT|
|000055a0| 49 4e 45 5f 50 41 52 41 | 4d 45 54 45 52 28 31 2c |INE_PARA|METER(1,|
|000055b0| 20 53 49 5a 45 5f 43 4f | 44 45 28 73 69 7a 65 6f | SIZE_CO|DE(sizeo|
|000055c0| 66 28 6c 6f 6e 67 29 29 | 29 0d 09 09 20 7c 20 53 |f(long))|)... | S|
|000055d0| 54 41 43 4b 5f 52 4f 55 | 54 49 4e 45 5f 50 41 52 |TACK_ROU|TINE_PAR|
|000055e0| 41 4d 45 54 45 52 28 32 | 2c 20 53 49 5a 45 5f 43 |AMETER(2|, SIZE_C|
|000055f0| 4f 44 45 28 73 69 7a 65 | 6f 66 28 63 68 61 72 2a |ODE(size|of(char*|
|00005600| 29 29 29 0d 7d 3b 0d 0d | 2f 2f 20 65 74 63 2e 0d |))).};..|// etc..|
|00005610| 0d 2f 2f 0d 2f 2f 20 63 | 68 61 6e 67 65 20 70 61 |.//.// c|hange pa|
|00005620| 72 61 6d 65 74 65 72 20 | 31 20 6f 66 20 61 6c 6c |rameter |1 of all|
|00005630| 20 50 72 6f 63 49 6e 66 | 6f 73 20 74 6f 20 28 73 | ProcInf|os to (s|
|00005640| 69 7a 65 6f 66 28 6c 6f | 6e 67 29 29 0d 2f 2f 0d |izeof(lo|ng)).//.|
|00005650| 0d 2d 20 2d 2d 2d 2d 2d | 2d 2d 0d 0d 48 6f 70 65 |.- -----|--..Hope|
|00005660| 20 74 68 69 73 20 77 61 | 73 20 68 65 6c 70 66 75 | this wa|s helpfu|
|00005670| 6c 2e 0d 0d 2d 45 72 69 | 63 0d 0d 0d 2d 2d 20 0d |l...-Eri|c...-- .|
|00005680| 45 72 69 63 20 53 63 6f | 75 74 65 6e 20 20 2a 20 |Eric Sco|uten * |
|00005690| 20 55 20 6f 66 20 4d 4e | 20 20 2a 20 20 73 63 6f | U of MN| * sco|
|000056a0| 75 74 65 6e 40 6d 61 72 | 6f 6f 6e 2e 74 63 2e 75 |uten@mar|oon.tc.u|
|000056b0| 6d 6e 2e 65 64 75 20 20 | 2a 20 20 2b 31 20 36 31 |mn.edu |* +1 61|
|000056c0| 32 20 36 32 36 20 30 37 | 34 36 0d 20 20 2a 2a 20 |2 626 07|46. ** |
|000056d0| 4d 53 20 43 6f 6d 70 75 | 74 65 72 20 53 63 69 65 |MS Compu|ter Scie|
|000056e0| 6e 63 65 20 73 74 75 64 | 65 6e 74 2c 20 55 6e 69 |nce stud|ent, Uni|
|000056f0| 76 20 6f 66 20 49 6c 6c | 69 6e 6f 69 73 2c 20 73 |v of Ill|inois, s|
|00005700| 74 61 72 74 69 6e 67 20 | 41 75 67 20 27 39 34 20 |tarting |Aug '94 |
|00005710| 2a 2a 0d 0d 4d 61 70 73 | 20 74 65 6c 6c 20 74 68 |**..Maps| tell th|
|00005720| 65 20 74 72 75 74 68 2c | 20 74 68 65 20 77 68 6f |e truth,| the who|
|00005730| 6c 65 20 74 72 75 74 68 | 2c 20 61 6e 64 20 61 6e |le truth|, and an|
|00005740| 79 74 68 69 6e 67 20 62 | 75 74 20 74 68 65 20 74 |ything b|ut the t|
|00005750| 72 75 74 68 2e 0d 0d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ruth...-|--------|
|00005760| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005770| 2d 2d 0d 0d 3e 46 72 6f | 6d 20 6b 65 72 72 40 6d |--..>Fro|m kerr@m|
|00005780| 61 74 68 2e 6f 68 69 6f | 2d 73 74 61 74 65 2e 65 |ath.ohio|-state.e|
|00005790| 64 75 20 28 4b 65 72 72 | 20 47 69 62 73 6f 6e 29 |du (Kerr| Gibson)|
|000057a0| 0d 53 75 62 6a 65 63 74 | 3a 20 4d 61 6a 6f 72 20 |.Subject|: Major |
|000057b0| 62 75 67 20 77 69 74 68 | 20 53 79 6d 61 6e 74 65 |bug with| Symante|
|000057c0| 63 20 43 44 4b 20 2a 50 | 6c 65 61 73 65 20 52 65 |c CDK *P|lease Re|
|000057d0| 61 64 2a 0d 44 61 74 65 | 3a 20 32 31 20 4a 75 6e |ad*.Date|: 21 Jun|
|000057e0| 20 31 39 39 34 20 31 39 | 3a 31 33 3a 33 36 20 2d | 1994 19|:13:36 -|
|000057f0| 30 34 30 30 0d 4f 72 67 | 61 6e 69 7a 61 74 69 6f |0400.Org|anizatio|
|00005800| 6e 3a 20 44 65 70 61 72 | 74 6d 65 6e 74 20 6f 66 |n: Depar|tment of|
|00005810| 20 4d 61 74 68 65 6d 61 | 74 69 63 73 2c 20 54 68 | Mathema|tics, Th|
|00005820| 65 20 4f 68 69 6f 20 53 | 74 61 74 65 20 55 6e 69 |e Ohio S|tate Uni|
|00005830| 76 65 72 73 69 74 79 0d | 0d 0d 54 68 6f 75 67 68 |versity.|..Though|
|00005840| 74 20 49 20 77 6f 75 6c | 64 20 77 72 69 74 65 20 |t I woul|d write |
|00005850| 74 68 69 73 20 74 6f 20 | 73 70 61 72 65 20 79 6f |this to |spare yo|
|00005860| 75 20 73 6f 6d 65 20 6f | 66 20 74 68 65 20 68 65 |u some o|f the he|
|00005870| 61 64 61 63 68 65 73 20 | 49 20 77 65 6e 74 0d 74 |adaches |I went.t|
|00005880| 68 72 6f 75 67 68 20 69 | 6e 20 6c 69 6e 6b 69 6e |hrough i|n linkin|
|00005890| 67 20 61 20 53 79 6d 61 | 6e 74 65 63 20 50 50 43 |g a Syma|ntec PPC|
|000058a0| 20 70 72 6f 6a 65 63 74 | 2e 0d 0d 0d 4d 79 20 6f | project|....My o|
|000058b0| 72 69 67 69 6e 61 6c 20 | 70 72 6f 62 6c 65 6d 20 |riginal |problem |
|000058c0| 77 61 73 20 74 68 61 74 | 20 49 20 68 61 64 20 70 |was that| I had p|
|000058d0| 6f 72 74 65 64 20 61 6e | 20 6f 6c 64 20 70 72 6f |orted an| old pro|
|000058e0| 6a 65 63 74 20 74 6f 20 | 61 20 6e 65 77 20 56 69 |ject to |a new Vi|
|000058f0| 72 74 75 61 6c 0d 41 72 | 63 68 69 74 65 63 74 20 |rtual.Ar|chitect |
|00005900| 50 50 43 20 70 72 6f 6a | 65 63 74 2e 20 20 54 68 |PPC proj|ect. Th|
|00005910| 65 20 70 72 6f 6a 65 63 | 74 20 6c 69 6e 6b 65 64 |e projec|t linked|
|00005920| 20 76 69 61 20 74 68 65 | 20 54 6f 6f 6c 53 65 72 | via the| ToolSer|
|00005930| 76 65 72 20 61 6e 64 20 | 70 72 6f 64 75 63 65 64 |ver and |produced|
|00005940| 0d 61 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |.an appl|ication |
|00005950| 77 68 69 63 68 20 69 6e | 65 78 70 6c 69 63 61 62 |which in|explicab|
|00005960| 6c 79 20 77 6f 75 6c 64 | 20 6e 6f 74 20 72 75 6e |ly would| not run|
|00005970| 2e 20 20 41 6c 6c 20 69 | 74 20 77 6f 75 6c 64 20 |. All i|t would |
|00005980| 64 6f 20 77 61 73 20 70 | 72 6f 64 75 63 65 0d 61 |do was p|roduce.a|
|00005990| 6e 20 65 72 72 6f 72 20 | 61 6e 64 20 71 75 69 74 |n error |and quit|
|000059a0| 2e 0d 0d 54 68 65 20 61 | 63 74 75 61 6c 20 62 75 |...The a|ctual bu|
|000059b0| 67 20 68 61 73 20 74 6f | 20 64 6f 20 77 69 74 68 |g has to| do with|
|000059c0| 20 51 75 69 63 6b 74 69 | 6d 65 20 61 6e 64 20 74 | Quickti|me and t|
|000059d0| 68 65 20 6d 61 6b 65 66 | 69 6c 65 20 66 6f 72 20 |he makef|ile for |
|000059e0| 74 68 65 20 54 6f 6f 6c | 53 65 72 76 65 72 2e 20 |the Tool|Server. |
|000059f0| 0d 4d 79 20 6f 72 69 67 | 69 6e 61 6c 20 70 72 6f |.My orig|inal pro|
|00005a00| 6a 65 63 74 20 75 73 65 | 73 20 51 75 69 63 6b 74 |ject use|s Quickt|
|00005a10| 69 6d 65 20 61 6e 64 20 | 74 68 65 20 51 75 69 63 |ime and |the Quic|
|00005a20| 6b 54 69 6d 65 20 78 63 | 6f 66 66 20 6c 69 62 72 |kTime xc|off libr|
|00005a30| 61 72 79 20 69 73 20 6e | 6f 74 0d 69 6e 63 6c 75 |ary is n|ot.inclu|
|00005a40| 64 65 64 20 69 6e 20 74 | 68 65 20 56 41 20 50 50 |ded in t|he VA PP|
|00005a50| 43 20 73 74 61 72 74 65 | 72 20 70 72 6f 6a 65 63 |C starte|r projec|
|00005a60| 74 2e 20 22 55 68 20 4f | 68 2e 22 2c 20 49 20 74 |t. "Uh O|h.", I t|
|00005a70| 68 69 6e 6b 2c 20 22 49 | 20 68 61 64 20 62 65 74 |hink, "I| had bet|
|00005a80| 74 65 72 20 6d 61 6b 65 | 0d 73 75 72 65 20 74 68 |ter make|.sure th|
|00005a90| 65 20 51 75 69 63 6b 74 | 69 6d 65 20 6c 69 62 20 |e Quickt|ime lib |
|00005aa0| 69 73 20 69 6e 63 6c 75 | 64 65 64 20 69 6e 20 74 |is inclu|ded in t|
|00005ab0| 68 65 20 6c 69 6e 6b 65 | 72 20 73 63 72 69 70 74 |he linke|r script|
|00005ac0| 20 66 6f 72 20 74 68 65 | 20 54 6f 6f 6c 53 65 72 | for the| ToolSer|
|00005ad0| 76 65 72 2e 20 20 0d 53 | 6f 20 49 20 6f 70 65 6e |ver. .S|o I open|
|00005ae0| 20 74 68 65 20 50 50 43 | 42 75 69 6c 64 2e 74 73 | the PPC|Build.ts|
|00005af0| 20 66 69 6c 65 20 61 6e | 64 20 66 69 6e 64 20 74 | file an|d find t|
|00005b00| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 3a 0d 0d 2e |he follo|wing:...|
|00005b10| 2e 2e 0d 4d 61 6b 65 50 | 45 46 20 7b 58 43 4f 46 |...MakeP|EF {XCOF|
|00005b20| 46 6e 61 6d 65 7d 20 2d | 6f 20 7b 41 70 70 4e 61 |Fname} -|o {AppNa|
|00005b30| 6d 65 7d 20 36 0d 20 20 | 20 2d 6c 20 22 41 70 70 |me} 6. | -l "App|
|00005b40| 6c 65 53 63 72 69 70 74 | 4c 69 62 2e 78 63 6f 66 |leScript|Lib.xcof|
|00005b50| 66 2e 6f 3d 41 70 70 6c | 65 53 63 72 69 70 74 4c |f.o=Appl|eScriptL|
|00005b60| 69 62 22 20 36 0d 20 20 | 20 2d 6c 20 22 49 6e 74 |ib" 6. | -l "Int|
|00005b70| 65 72 66 61 63 65 4c 69 | 62 2e 78 63 6f 66 66 2e |erfaceLi|b.xcoff.|
|00005b80| 6f 3d 49 6e 74 65 72 66 | 61 63 65 4c 69 62 22 20 |o=Interf|aceLib" |
|00005b90| 36 0d 20 20 20 2d 6c 20 | 22 4d 61 74 68 4c 69 62 |6. -l |"MathLib|
|00005ba0| 2e 78 63 6f 66 66 2e 6f | 3d 4d 61 74 68 4c 69 62 |.xcoff.o|=MathLib|
|00005bb0| 22 20 36 0d 20 20 20 2d | 6c 20 22 4f 62 6a 65 63 |" 6. -|l "Objec|
|00005bc0| 74 53 75 70 70 6f 72 74 | 4c 69 62 2e 78 63 6f 66 |tSupport|Lib.xcof|
|00005bd0| 66 2e 6f 3d 4f 62 6a 65 | 63 74 53 75 70 70 6f 72 |f.o=Obje|ctSuppor|
|00005be0| 74 4c 69 62 22 20 36 0d | 20 20 20 2d 6c 20 22 51 |tLib" 6.| -l "Q|
|00005bf0| 75 69 63 6b 54 69 6d 65 | 4c 69 62 2e 78 63 6f 66 |uickTime|Lib.xcof|
|00005c00| 66 2e 6f 3d 49 6e 74 65 | 72 66 61 63 65 4c 69 62 |f.o=Inte|rfaceLib|
|00005c10| 22 20 36 0d 20 20 20 2d | 6c 20 22 53 74 64 43 4c |" 6. -|l "StdCL|
|00005c20| 69 62 2e 78 63 6f 66 66 | 2e 6f 3d 53 74 64 43 4c |ib.xcoff|.o=StdCL|
|00005c30| 69 62 22 20 36 0d 20 20 | 20 2d 66 74 20 27 41 50 |ib" 6. | -ft 'AP|
|00005c40| 50 4c 27 20 2d 66 63 20 | 22 7b 43 72 65 61 74 6f |PL' -fc |"{Creato|
|00005c50| 72 7d 22 0d 0d 4c 6f 20 | 61 6e 64 20 62 65 68 6f |r}"..Lo |and beho|
|00005c60| 6c 64 2c 20 69 74 20 69 | 73 20 61 6c 72 65 61 64 |ld, it i|s alread|
|00005c70| 79 20 74 68 65 72 65 2e | 20 22 4f 6b 20 43 6f 6f |y there.| "Ok Coo|
|00005c80| 6c 22 2c 20 49 20 73 61 | 79 20 74 6f 20 6d 79 73 |l", I sa|y to mys|
|00005c90| 65 6c 66 2c 20 22 49 20 | 6a 75 73 74 20 77 6f 6e |elf, "I |just won|
|00005ca0| 27 74 0d 63 68 61 6e 67 | 65 20 74 68 65 20 66 69 |'t.chang|e the fi|
|00005cb0| 6c 65 2e 22 20 53 6f 20 | 49 20 6c 65 61 76 65 20 |le." So |I leave |
|00005cc0| 69 74 20 61 6c 6f 6e 65 | 20 61 6e 64 20 74 68 65 |it alone| and the|
|00005cd0| 6e 20 49 20 73 70 65 6e | 64 20 74 68 65 20 6e 65 |n I spen|d the ne|
|00005ce0| 78 74 20 77 65 65 6b 20 | 74 72 79 69 6e 67 20 74 |xt week |trying t|
|00005cf0| 6f 0d 66 69 67 75 72 65 | 20 6f 75 74 20 77 68 79 |o.figure| out why|
|00005d00| 20 6d 79 20 70 72 6f 67 | 72 61 6d 20 6c 69 6e 6b | my prog|ram link|
|00005d10| 73 20 62 75 74 20 77 6f | 6e 74 20 72 75 6e 2e 20 |s but wo|nt run. |
|00005d20| 20 54 68 65 20 61 73 74 | 75 74 65 20 6f 62 73 65 | The ast|ute obse|
|00005d30| 72 76 65 72 20 6f 66 20 | 63 6f 75 72 73 65 0d 77 |rver of |course.w|
|00005d40| 69 6c 6c 20 73 65 65 20 | 77 68 61 74 20 49 20 66 |ill see |what I f|
|00005d50| 61 69 6c 65 64 20 74 6f | 20 6e 6f 74 69 63 65 3a |ailed to| notice:|
|00005d60| 0d 0d 2d 6c 20 22 51 75 | 69 63 6b 54 69 6d 65 4c |..-l "Qu|ickTimeL|
|00005d70| 69 62 2e 78 63 6f 66 66 | 2e 6f 3d 49 6e 74 65 72 |ib.xcoff|.o=Inter|
|00005d80| 66 61 63 65 4c 69 62 22 | 20 36 0d 20 20 20 20 20 |faceLib"| 6. |
|00005d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005da0| 20 20 20 20 5e 5e 5e 5e | 5e 5e 5e 5e 5e 5e 5e 5e | ^^^^|^^^^^^^^|
|00005db0| 0d 20 20 20 20 20 20 49 | 74 73 20 74 68 65 20 77 |. I|ts the w|
|00005dc0| 72 6f 6e 67 20 64 2a 6d | 6e 20 6c 69 62 72 61 72 |rong d*m|n librar|
|00005dd0| 79 20 6e 61 6d 65 21 0d | 0d 54 68 69 73 20 65 78 |y name!.|.This ex|
|00005de0| 70 6c 61 69 6e 73 20 74 | 68 65 20 69 73 73 75 65 |plains t|he issue|
|00005df0| 2e 20 54 68 65 20 6c 69 | 6e 6b 65 72 20 64 69 64 |. The li|nker did|
|00005e00| 20 6e 6f 74 20 72 65 70 | 6f 72 74 20 61 6e 20 65 | not rep|ort an e|
|00005e10| 72 72 6f 72 20 62 65 63 | 61 75 73 65 20 74 68 65 |rror bec|ause the|
|00005e20| 20 6c 69 62 72 61 72 79 | 0d 72 65 61 6c 6c 79 20 | library|.really |
|00005e30| 77 61 73 20 6c 6f 61 64 | 65 64 2e 20 20 55 6e 66 |was load|ed. Unf|
|00005e40| 6f 72 74 75 6e 61 74 65 | 6c 79 20 69 74 20 77 61 |ortunate|ly it wa|
|00005e50| 73 20 6c 6f 61 64 65 64 | 20 72 69 67 68 74 20 6f |s loaded| right o|
|00005e60| 76 65 72 20 74 6f 70 20 | 6f 66 20 74 68 65 20 70 |ver top |of the p|
|00005e70| 72 65 76 69 6f 75 73 0d | 49 6e 74 65 72 66 61 63 |revious.|Interfac|
|00005e80| 65 4c 69 62 20 50 45 46 | 20 66 69 6c 65 21 20 20 |eLib PEF| file! |
|00005e90| 54 68 65 20 72 65 61 73 | 6f 6e 20 74 68 69 73 20 |The reas|on this |
|00005ea0| 62 75 67 20 77 61 73 20 | 6e 65 76 65 72 20 66 6f |bug was |never fo|
|00005eb0| 75 6e 64 20 69 73 20 62 | 65 63 61 75 73 65 20 69 |und is b|ecause i|
|00005ec0| 66 20 74 68 65 72 65 0d | 69 73 20 6e 6f 20 51 75 |f there.|is no Qu|
|00005ed0| 69 63 6b 74 69 6d 65 20 | 6c 69 62 20 69 6e 20 74 |icktime |lib in t|
|00005ee0| 68 65 20 70 72 6f 6a 65 | 63 74 2c 20 69 74 20 69 |he proje|ct, it i|
|00005ef0| 73 20 69 67 6e 6f 72 65 | 64 20 62 79 20 74 68 69 |s ignore|d by thi|
|00005f00| 73 20 73 63 72 69 70 74 | 2e 20 20 49 20 69 6d 61 |s script|. I ima|
|00005f10| 67 69 6e 65 0d 74 68 61 | 74 20 74 68 69 73 20 6c |gine.tha|t this l|
|00005f20| 69 74 74 6c 65 20 64 69 | 64 64 79 20 77 72 65 61 |ittle di|ddy wrea|
|00005f30| 6b 65 64 20 68 65 6c 6c | 20 77 69 74 68 20 74 68 |ked hell| with th|
|00005f40| 65 20 63 6f 64 65 20 66 | 72 61 67 6d 65 6e 74 2c |e code f|ragment,|
|00005f50| 20 68 65 6e 63 65 2c 20 | 69 74 20 77 61 73 20 0d | hence, |it was .|
|00005f60| 75 6e 61 62 6c 65 20 74 | 6f 20 72 75 6e 2e 0d 49 |unable t|o run..I|
|00005f70| 20 68 61 64 20 62 65 65 | 6e 20 64 75 70 65 64 20 | had bee|n duped |
|00005f80| 62 79 20 61 20 73 69 6d | 70 6c 65 20 63 6f 70 79 |by a sim|ple copy|
|00005f90| 2f 70 61 73 74 65 20 65 | 72 72 6f 72 20 28 73 65 |/paste e|rror (se|
|00005fa0| 65 20 33 20 6c 69 6e 65 | 73 20 61 62 6f 76 65 20 |e 3 line|s above |
|00005fb0| 69 74 29 2e 20 20 4e 6f | 77 20 0d 49 20 64 6f 6e |it). No|w .I don|
|00005fc0| 27 74 20 68 61 76 65 20 | 61 20 70 72 6f 62 6c 65 |'t have |a proble|
|00005fd0| 6d 20 77 69 74 68 20 63 | 6f 70 79 2f 70 61 73 74 |m with c|opy/past|
|00005fe0| 65 20 65 72 72 6f 72 73 | 2c 20 47 6f 64 20 6b 6e |e errors|, God kn|
|00005ff0| 6f 77 73 20 49 20 6d 61 | 6b 65 20 74 68 65 6d 20 |ows I ma|ke them |
|00006000| 61 6c 6c 20 74 68 65 20 | 0d 74 69 6d 65 2e 20 20 |all the |.time. |
|00006010| 42 75 74 20 49 27 6d 20 | 61 20 6c 69 74 74 6c 65 |But I'm |a little|
|00006020| 20 6d 69 66 66 65 64 20 | 74 68 61 74 20 63 65 72 | miffed |that cer|
|00006030| 74 61 69 6e 20 6c 69 62 | 72 61 72 69 65 73 20 77 |tain lib|raries w|
|00006040| 65 72 65 20 6e 65 76 65 | 72 20 74 65 73 74 65 64 |ere neve|r tested|
|00006050| 20 77 69 74 68 20 0d 74 | 68 65 20 66 69 6e 61 6c | with .t|he final|
|00006060| 20 6f 75 74 2d 74 68 65 | 2d 64 6f 6f 72 20 70 72 | out-the|-door pr|
|00006070| 6f 64 75 63 74 2e 0d 0d | 41 6e 79 77 61 79 2c 20 |oduct...|Anyway, |
|00006080| 69 66 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 75 |if you w|ant to u|
|00006090| 73 65 20 51 75 69 63 6b | 54 69 6d 65 20 77 69 74 |se Quick|Time wit|
|000060a0| 68 20 74 68 65 20 43 44 | 4b 2c 20 74 68 69 73 20 |h the CD|K, this |
|000060b0| 69 73 20 79 6f 75 72 20 | 77 61 72 6e 69 6e 67 2e |is your |warning.|
|000060c0| 0d 0d 2d 2d 4b 65 72 72 | 20 47 69 62 73 6f 6e 0d |..--Kerr| Gibson.|
|000060d0| 0d 50 2e 53 2e 20 49 27 | 6d 20 61 6c 73 6f 20 70 |.P.S. I'|m also p|
|000060e0| 69 73 73 65 64 20 74 68 | 61 74 20 74 68 65 20 46 |issed th|at the F|
|000060f0| 69 6e 64 65 72 20 64 69 | 64 20 6e 6f 74 20 67 69 |inder di|d not gi|
|00006100| 76 65 20 6d 65 20 61 6e | 20 65 72 72 6f 72 20 63 |ve me an| error c|
|00006110| 6f 64 65 2d 20 61 6c 6c | 0d 69 74 20 73 61 69 64 |ode- all|.it said|
|00006120| 20 77 61 73 20 22 54 68 | 65 20 41 70 70 6c 69 63 | was "Th|e Applic|
|00006130| 61 74 69 6f 6e 20 78 78 | 78 20 63 6f 75 6c 64 20 |ation xx|x could |
|00006140| 6e 6f 74 20 62 65 20 6c | 61 75 6e 63 68 65 64 20 |not be l|aunched |
|00006150| 62 65 63 61 75 73 65 20 | 61 6e 20 65 72 72 6f 72 |because |an error|
|00006160| 0d 6f 63 75 72 72 65 64 | 2e 22 20 20 57 68 61 74 |.ocurred|." What|
|00006170| 20 67 69 76 65 73 3f 0d | 0d 0d 0d 0d 0d 0d 0d 0d | gives?.|........|
|00006180| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006190| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0d 3e 46 72 |--------|---..>Fr|
|000061a0| 6f 6d 20 6c 64 6f 40 77 | 61 69 6b 61 74 6f 2e 61 |om ldo@w|aikato.a|
|000061b0| 63 2e 6e 7a 20 28 4c 61 | 77 72 65 6e 63 65 20 44 |c.nz (La|wrence D|
|000061c0| 27 4f 6c 69 76 65 69 72 | 6f 2c 20 57 61 69 6b 61 |'Oliveir|o, Waika|
|000061d0| 74 6f 20 55 6e 69 76 65 | 72 73 69 74 79 29 0d 53 |to Unive|rsity).S|
|000061e0| 75 62 6a 65 63 74 3a 20 | 50 65 72 73 70 65 63 74 |ubject: |Perspect|
|000061f0| 69 76 65 20 69 6e 20 47 | 58 20 28 77 61 73 20 52 |ive in G|X (was R|
|00006200| 65 3a 20 63 61 6e 20 74 | 6f 6f 6c 62 6f 78 20 64 |e: can t|oolbox d|
|00006210| 72 61 77 20 74 65 78 74 | 20 61 74 20 61 6e 20 61 |raw text| at an a|
|00006220| 6e 67 6c 65 3f 29 0d 44 | 61 74 65 3a 20 32 31 20 |ngle?).D|ate: 21 |
|00006230| 4a 75 6e 20 39 34 20 31 | 34 3a 30 36 3a 33 37 20 |Jun 94 1|4:06:37 |
|00006240| 2b 31 32 30 30 0d 4f 72 | 67 61 6e 69 7a 61 74 69 |+1200.Or|ganizati|
|00006250| 6f 6e 3a 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |on: Univ|ersity o|
|00006260| 66 20 57 61 69 6b 61 74 | 6f 2c 20 48 61 6d 69 6c |f Waikat|o, Hamil|
|00006270| 74 6f 6e 2c 20 4e 65 77 | 20 5a 65 61 6c 61 6e 64 |ton, New| Zealand|
|00006280| 0d 0d 49 6e 20 61 72 74 | 69 63 6c 65 20 3c 33 36 |..In art|icle <36|
|00006290| 32 34 38 36 31 36 39 34 | 2e 38 32 34 31 34 39 38 |24861694|.8241498|
|000062a0| 40 74 65 6d 70 65 73 74 | 2e 74 65 6d 70 65 73 74 |@tempest|.tempest|
|000062b0| 2e 6e 65 74 2e 68 6b 3e | 2c 20 6a 6f 68 6e 62 40 |.net.hk>|, johnb@|
|000062c0| 74 65 6d 70 65 73 74 2e | 6e 65 74 2e 68 6b 20 28 |tempest.|net.hk (|
|000062d0| 4a 6f 68 6e 20 57 2e 20 | 42 6c 61 63 6b 62 75 72 |John W. |Blackbur|
|000062e0| 6e 65 29 20 77 72 69 74 | 65 73 3a 0d 3e 20 4a 65 |ne) writ|es:.> Je|
|000062f0| 6e 73 20 41 6c 66 6b 65 | 20 28 6a 65 6e 73 5f 61 |ns Alfke| (jens_a|
|00006300| 6c 66 6b 65 40 70 6f 77 | 65 72 74 61 6c 6b 2e 61 |lfke@pow|ertalk.a|
|00006310| 70 70 6c 65 2e 63 6f 6d | 29 20 77 72 6f 74 65 3a |pple.com|) wrote:|
|00006320| 0d 3e 0d 3e 3e 20 57 68 | 79 20 79 65 73 20 2d 2d |.>.>> Wh|y yes --|
|00006330| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 20 73 75 | QuickDr|aw GX su|
|00006340| 70 70 6f 72 74 73 20 61 | 72 62 69 74 72 61 72 79 |pports a|rbitrary|
|00006350| 20 74 72 61 6e 73 66 6f | 72 6d 61 74 69 6f 6e 73 | transfo|rmations|
|00006360| 20 6f 66 20 74 65 78 74 | 2c 0d 3e 20 69 6e 63 6c | of text|,.> incl|
|00006370| 75 64 69 6e 67 0d 3e 3e | 20 73 6b 65 77 20 61 6e |uding.>>| skew an|
|00006380| 64 20 70 65 72 73 70 65 | 63 74 69 76 65 20 69 6e |d perspe|ctive in|
|00006390| 20 61 64 64 69 74 69 6f | 6e 20 74 6f 20 72 6f 74 | additio|n to rot|
|000063a0| 61 74 69 6f 6e 2e 20 41 | 6e 79 74 68 69 6e 67 20 |ation. A|nything |
|000063b0| 79 6f 75 20 63 61 6e 20 | 64 65 73 63 72 69 62 65 |you can |describe|
|000063c0| 20 69 6e 0d 3e 20 61 0d | 3e 3e 20 33 78 33 20 6d | in.> a.|>> 3x3 m|
|000063d0| 61 74 72 69 78 2e 20 4e | 6f 74 20 6f 6e 6c 79 20 |atrix. N|ot only |
|000063e0| 74 68 61 74 2c 20 62 75 | 74 20 79 6f 75 20 63 61 |that, bu|t you ca|
|000063f0| 6e 20 61 6c 6c 6f 77 20 | 74 68 65 20 75 73 65 72 |n allow |the user|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.